Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Similar Conversion problem

    SDK Help
    0
    4
    337
    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
      Helper
      last edited by

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

      On 13/12/2005 at 12:25, xxxxxxxx wrote:

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

      ---------
      Hi,

      I switched to MSVC Express edition now and am having problems with Templates.

      For example using the SDK Pow() Template, the compiler always gives me an error that there might be similar conversions.

      For functions I can workaround this using explicit operator calls, but for this? How can this be workarounded or fixed?

      Thanks in advance!

      Compiler Error code:
      \res\noise_functions.h(1339) : error C2666: 'Pow' : 2 overloads have similar conversions
              d:\programme\maxon\9.509\resource\_api\ge_win_math.h(155) : could be 'LReal Pow(LReal,LReal)'
              d:\programme\maxon\9.509\resource\_api\ge_win_math.h(138) : or 'Real Pow(Real,Real)'
              while trying to match the argument list '(double, float)'

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

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

        On 14/12/2005 at 07:41, xxxxxxxx wrote:

        ok, an explicit cast fixes the problem here too.

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

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

          On 14/12/2005 at 14:12, xxxxxxxx wrote:

          Also note that if you write a constant the type is decided by a suffix. So 2.0 is a double (LReal) and 2.0f is a float (Real).

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

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

            On 15/12/2005 at 06:40, xxxxxxxx wrote:

            yep 🙂

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