craftr-build / net.maxon.c4d

Build module for the MAXON Cinema 4D SDK
4 stars 3 forks source link

Never compile C4D SDK with __LEGACY_API #1

Closed NiklasRosenstein closed 8 years ago

NiklasRosenstein commented 8 years ago

Compiling the R16 SDK with maxon.c4d.legacy_api set to True results in an error. The SDK should never be compile with __LEGACY_API enabled.

c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\legacy.h(208) : warning C4005: '__C4D_64BIT' : macro redefinition
        command-line arguments :  see previous definition of '__C4D_64BIT'
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(116) : error C2065: 'bNewDeprecatedUseArraysInstead' : undeclared identifier
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(116) : error C2059: syntax error : '>'
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(133) : error C2065: 'bNewDeprecatedUseArraysInstead' : undeclared identifier
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(133) : error C2059: syntax error : '>'
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(156) : error C2065: 'bNewDeprecatedUseArraysInstead' : undeclared identifier
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(156) : error C2059: syntax error : '>'
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(202) : error C2065: 'bNewDeprecatedUseArraysInstead' : undeclared identifier
c:\maxon\cinema 4d r16 dev\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp(202) : error C2059: syntax error : '>'
NiklasRosenstein commented 8 years ago

Also fixed with latest changes to using c4d rule functions.