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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    GeData error during compilation -Mac only

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 171 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 11/05/2005 at 11:50, xxxxxxxx wrote:

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

      ---------
      I'm receiving a confusing error during compilation of my plugin in CW Pro 9 on MacOS. This error never happens in Windows using VC++ 6 and hadn't happened in similar situations, only this one.

      The type of error is like this (typically) :

        
      baseObject->SetParameter(DescID(LIGHT_TYPE), GeData(LIGHT_TYPE_DISTANT), NULL);  
      

      And I receive this error:

        
      Error : ambiguous access to overloaded function  
      'GeData:GeData(float)'  
      'GeData:GeData(int)'  
      'GeData:GeData(double)'  
      'GeData:GeData(long)'  
      

      SetParameter() is used extensively in other places in my code (for setting Material channel, Tag, other Object parameters) and this is the only place where it is occuring: Mac, baseObject, light?

      What the ...? 😉

      Help!

      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 11/05/2005 at 12:10, xxxxxxxx wrote:

        Found it. It actually wanted the type specified, in just this one situation. Hmmm...

        So

        baseObject->SetParameter(DescID(LIGHT_TYPE), GeData((LONG)LIGHT_TYPE_DISTANT), NULL);

        satisfies. Strange but working. 🙂

        Thanks,

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