Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Pow() build error!

    Scheduled Pinned Locked Moved Bugs
    4 Posts 0 Posters 817 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 17/06/2011 at 19:02, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I get this error message during compile when using the C4D SDK Pow() method:

      error C2064: term does not evaluate to a function taking 2 arguments

      Can anyone verify?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 18/06/2011 at 00:56, xxxxxxxx wrote:

        A simple call to Pow() seems to work okay for me:

          
             Real r1, r2, r3;   
          
             r1 = 2.0;   
             r2 = 3.0;   
             r3 = Pow(r1, r2);   
        

        Compiles without problems. Looking at the C2064 error explanation in VS, are you perhaps calling Pow() in some way other than the simple call I've tested?

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 18/06/2011 at 08:12, xxxxxxxx wrote:

          I called it like this:

          Real norm = something;
          Real power;
          ...
          power = Pow(norm, 1.5);

          Seems pretty straightforward to me.  What?  This version of Pow() can't accept constants?
          Might be a conflict somewhere in headers but I can't imagine from what as I don't use any outside headers here.

          ETA: And note that pow(a,b) (the standard C++ math method from which Pow() is defined) works flawlessly.  Something is amiss in the C4D derivation.

          Thanks,

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 18/06/2011 at 11:11, xxxxxxxx wrote:

            The build issue seems to have disappeared after changes to the code in the general area.  Maybe it was some naming issue.  I've seen this with 'array' which seems to have become a keyword (or reserved method name).  You'd think that developers would get some respect and the IDE or compiler would let you know that a name is already in use instead of just letting you fall into the sink-hole of endless debugging.  As my reply at CGTalk went, no wonder hardware is far outpacing software development.  We need new languages, much better tools, less vague issues.

            I just put my soapbox away. 👏

            1 Reply Last reply Reply Quote 0
            • First post
              Last post