Cannot compile SDK
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/11/2003 at 14:08, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;---------
This is what I get when I try to build the sdk. Any help would be appreciated. I am using VisualStudio.NET and have "included" the files stated in the SDK documentation.
------ Build started: Project: _api_v8, Configuration: Release Win32 ------
Compiling...
ge_mtools.cpp
c4d_particles.cpp
..\_api\c4d_libs\lib_collider.h(158) : error C2383: 'ColliderEngineLib::DoCollide' : default-arguments are not allowed on this symbol
c4d_operatorplugin.cpp
c4d_graphview.cpp
..\_api\c4d_libs\lib_collider.h(158) : error C2383: 'ColliderEngineLib::DoCollide' : default-arguments are not allowed on this symbol
scalelin.cpp
scaleitf.cpp
scale.cpp
miniblt.cpp
mergelin.cpp
SDK_add.cpp
pixelfetchutil.cpp
matrixwrapper.cpp
matrixutil.cpp
matrixrotate.cpp
linefetchutil.cpp
filterthread.cpp
filterpreview.cpp
filter_prefs.cpp
lib_snd.cpp
lib_sn.cpp
lib_prefs.cpp
lib_iconcollection.cpp
lib_editortools.cpp
lib_description.cpp
lib_collider.cpp
c:\Program Files\MAXON\CINEMA_4D_R8\Resource\_api\c4d_libs\lib_collider.h(158) : error C2383: 'ColliderEngineLib::DoCollide' : default-arguments are not allowed on this symbol
lib_clipmap.cpp
lib_activeobjectmanager.cpp
customgui_texturename.cpp
customgui_splinecontrol.cpp
customgui_quicktab.cpp
customgui_priority.cpp
customgui_matassign.cpp
customgui_listview.cpp
customgui_linkbox.cpp
customgui_inexclude.cpp
customgui_hyperlink.cpp
customgui_gradient.cpp
customgui_fontchooser.cpp
customgui_filename.cpp
customgui_description.cpp
customgui_descproperty.cpp
customgui_datetime.cpp
customgui_bitmapbutton.cpp
customgui_base.cpp
OperatingSystem.cpp
ge_sort.cpp
c4d_videopostplugin.cpp
c4d_videopost.cpp
c4d_tools.cpp
c4d_toolplugin.cpp
c4d_thread.cpp
c4d_tagplugin.cpp
c4d_string.cpp
c4d_shaderplugin.cpp
c4d_scenehookplugin.cpp
c4d_resource.cpp
\Program Files\MAXON\CINEMA_4D_R8\Resource\_api\c4d_resource.cpp(59) : warning C4291: 'void *Filename::operator new(size_t,int,const CHAR * )' : no matching operator delete found; memory will not be freed if initialization throws an exception
c:\Program Files\MAXON\CINEMA_4D_R8\Resource\_api\c4d_file.h(21) : see declaration of 'Filename::operator new'
c4d_quaternion.cpp
c4d_pmain.cpp
c4d_particleobject.cpp
c4d_painter.cpp
c4d_objectplugin.cpp
c4d_nodeplugin.cpp
c4d_messageplugin.cpp
c4d_memory.cpp
c4d_materialplugin.cpp
c4d_listview.cpp
c4d_library.cpp
c4d_gui.cpp
c4d_general.cpp
c4d_gedata.cpp
c4d_filterplugin.cpp
c4d_file.cpp
c4d_customguiplugin.cpp
c4d_customguidata.cpp
c4d_customdatatypeplugin.cpp
c4d_customdatatype.cpp
c4d_commandplugin.cpp
c4d_coffee.cpp
c4d_bitmapfilter.cpp
c4d_basetrack.cpp
c4d_basetime.cpp
c4d_basetag.cpp
c4d_basesound.cpp
c4d_basesequence.cpp
c4d_baseselect.cpp
c4d_baseplugin.cpp
c4d_baseobject.cpp
c4d_basematerial.cpp
c4d_baselist.cpp
c4d_basekey.cpp
c4d_basedraw.cpp
c4d_basedocument.cpp
c4d_basecontainer.cpp
c4d_basechannel.cpp
c4d_basebitmap.cpp
c4d_animplugin.cpp
Build log was saved at "file://c:\Program Files\Maxon\Cinema_4d_r8\Resource\_api_lib\obj\sdk_rel\BuildLog.htm"
_api_v8 - 3 error(s), 1 warning(s)
------ Build started: Project: cinema4dsdk, Configuration: Release Win32 ------
Compiling...
datatype.cpp
source\datatype\datatype.cpp(231) : error C2664: 'CustomDataTypeClass::Calculate' : cannot convert parameter 4 from 'const CustomDataType *' to 'CustomDataType *'
Conversion loses qualifiers
VPVisualizeNormals.cpp
VPReconstructImage.cpp
VPInvertImage.cpp
VPColorize.cpp
LiquidTool.cpp
LookAtCamera.cpp
source ag\LookAtCamera.cpp(39) : error C2065: 'PRIORITYVALUE_CAMERADEPENDANT' : undeclared identifier
SimpleMaterial.cpp
ParticleVolume.cpp
MandelbrotShader.cpp
Illumination.cpp
GradientShader.cpp
BitmapShader.cpp
Radiosity.cpp
Triangulate.cpp
Spherify.cpp
RoundedTube.cpp
MorphMixer.cpp
source\object\MorphMixer.cpp(153) : error C2664: 'CreateKey' : cannot convert parameter 3 from 'Real' to 'const BaseTime &'
Reason: cannot convert from 'Real' to 'const BaseTime'
Constructor for class 'BaseTime' is declared 'explicit'
Gravitation.cpp
Circle.cpp
Atom.cpp
SubDialog.cpp
Serial.cpp
MenuTest.cpp
ListView.cpp
GradientUserArea.cpp
AsyncTest.cpp
ActiveObject.cpp
source\gui\ActiveObject.cpp(327) : error C3861: 'FindCustomGui_': identifier not found, even with argument-dependent lookup
STL.cpp
BFF.cpp
FilterThreshold.cpp
FilterMatrix.cpp
Blinker.cpp
Main.cpp
Build log was saved at "file://c:\Program Files\Maxon\Cinema_4d_r8\Plugins\cinema4dsdk\obj\sdk_rel\BuildLog.htm"
cinema4dsdk - 4 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 2 failed, 0 skippedBuild Log --- | | \_<\_h3\_>\_------- Build started: Project: cinema4dsdk, Configuration: Release|Win32 ----\_<\_h3\_>\_/H3>
---|---|---
Command Lines| |
Creating temporary file "c:\Program Files\Maxon\Cinema_4d_r8\Plugins\cinema4dsdk\obj\sdk_rel\RSP000002.rsp" with contents [ /O2 /G6 /I ".\res" /I ".\res\description" /I "..\..\resource_api" /I "..\..\resource_api\c4d_customgui" /I "..\..\resource_api\c4d_libs" /I "..\..\resource_api\c4d_preview" /I "..\..\resource_api\c4d_scaling" /I "..\..\resource_api\c4d_gv" /D "WIN32" /D "\__PC" /D "NDEBUG" /D "\_WINDOWS" /FD /EHsc /MT /YX"stdafx.h" /Fp".\./obj/sdk_rel/CINEMA4DSDK.pch" /Fo".\./obj/sdk_rel/" /Fd".\./obj/sdk_rel/" /W3 /c /vmg /vms /vmg /vms /vmg /vms ".\source\datatype\datatype.cpp" ".\source\videopost\VPVisualizeNormals.cpp" ".\source\videopost\VPReconstructImage.cpp" ".\source\videopost\VPInvertImage.cpp" ".\source\videopost\VPColorize.cpp" ".\source ool\LiquidTool.cpp" ".\source ag\LookAtCamera.cpp" ".\source\shader\SimpleMaterial.cpp" ".\source\shader\ParticleVolume.cpp" ".\source\shader\MandelbrotShader.cpp" ".\source\shader\Illumination.cpp" ".\source\shader\GradientShader.cpp" ".\source\shader\BitmapShader.cpp" ".\source\radiosity\Radiosity.cpp" ".\source\object\Triangulate.cpp" ".\source\object\Spherify.cpp" ".\source\object\RoundedTube.cpp" ".\source\object\MorphMixer.cpp" ".\source\object\Gravitation.cpp" ".\source\object\Circle.cpp" ".\source\object\Atom.cpp" ".\source\gui\SubDialog.cpp" ".\source\gui\Serial.cpp" ".\source\gui\MenuTest.cpp" ".\source\gui\ListView.cpp" ".\source\gui\GradientUserArea.cpp" ".\source\gui\AsyncTest.cpp" ".\source\gui\ActiveObject.cpp" ".\source\filter\STL.cpp" ".\source\filter\BFF.cpp" ".\source\bitmapfilter\FilterThreshold.cpp" ".\source\bitmapfilter\FilterMatrix.cpp" ".\source\animation\Blinker.cpp" ".\source\Main.cpp" ] Creating command line "cl.exe @"c:\Program Files\Maxon\Cinema_4d_r8\Plugins\cinema4dsdk\obj\sdk_rel\RSP000002.rsp" /nologo"
---|---|---
Output Window| |
Compiling... datatype.cpp source\datatype\datatype.cpp(231) : error C2664: 'CustomDataTypeClass::Calculate' : cannot convert parameter 4 from 'const CustomDataType \*' to 'CustomDataType \*' Conversion loses qualifiers VPVisualizeNormals.cpp VPReconstructImage.cpp VPInvertImage.cpp VPColorize.cpp LiquidTool.cpp LookAtCamera.cpp source ag\LookAtCamera.cpp(39) : error C2065: 'PRIORITYVALUE_CAMERADEPENDANT' : undeclared identifier SimpleMaterial.cpp ParticleVolume.cpp MandelbrotShader.cpp Illumination.cpp GradientShader.cpp BitmapShader.cpp Radiosity.cpp Triangulate.cpp Spherify.cpp RoundedTube.cpp MorphMixer.cpp source\object\MorphMixer.cpp(153) : error C2664: 'CreateKey' : cannot convert parameter 3 from 'Real' to 'const BaseTime &' Reason: cannot convert from 'Real' to 'const BaseTime' Constructor for class 'BaseTime' is declared 'explicit' Gravitation.cpp Circle.cpp Atom.cpp SubDialog.cpp Serial.cpp MenuTest.cpp ListView.cpp GradientUserArea.cpp AsyncTest.cpp ActiveObject.cpp source\gui\ActiveObject.cpp(327) : error C3861: 'FindCustomGui\_': identifier not found, even with argument-dependent lookup STL.cpp BFF.cpp FilterThreshold.cpp FilterMatrix.cpp Blinker.cpp Main.cpp
---|---|---
Results| |
Build log was saved at "file://c:\Program Files\Maxon\Cinema_4d_r8\Plugins\cinema4dsdk\obj\sdk_rel\BuildLog.htm" cinema4dsdk - 4 error(s), 0 warning(s)
---|---|---
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2003 at 00:47, xxxxxxxx wrote:
First of all, it seems like the 8.207 API wasn't completely rid of all .NET incompatibilities. I cannot verify this myself I'm afraid, since I only have MSVC6. But for the C2383 error you can just remove the default argument. IF you want to remove the warning you'll have to add a dummy delete member function with the appropriate signature. (void operator delete(void* del,int,const CHAR* ) {delete del;})
For the rest of the errors it seems to me like you have mixed SDK versions. For example, my ActiveObject.cpp has "FindCustomGui" instead of "FindCustomGui_" on line 327. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/11/2003 at 05:15, xxxxxxxx wrote:
Mikael:
Thanks for the input. I will reinstall the software to clear up any mixed sdk files. I need to do a clean install on my computer anyway. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/12/2003 at 05:16, xxxxxxxx wrote:
Hi,
I have the same problems. I made a complete new installation but still have this error:
c:\Program Files\MAXON\CINEMA_4D_R8\Resource\_api\c4d_libs\lib_collider.h(158) : error C2383: 'ColliderEngineLib::DoCollide' : default-arguments are not allowed on this symbol
Has anybody an idea?
Thanks
Cathleen