Compile error [SOLVED]
-
On 13/10/2014 at 15:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) :---------
Howdy,OK, I got the directory issues solved so that I was able to move the SDK project folder, and everything compiled except for one error:
c:\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_misc\general.h(207) : fatal error C1004: unexpected end-of-file found
And when I double click on that error it points to this section in the general.h file:
template <typename T> struct TestForCopyFromMember { static const bool isSupported = XIS_TRUE_TYPE(TestForCopyFromFunction<T>(OVERLOAD_MAX_RANK)); };
... with the pointer on line 207 which is the ending "};" of the above code.
What's the issue?
Adios,
Cactus Dan -
On 13/10/2014 at 22:41, xxxxxxxx wrote:
Hi,
can you please provide the version of VisualStudio or whatever IDE/compiler you use? -
On 14/10/2014 at 06:06, xxxxxxxx wrote:
Howdy,
I'm using MSVC 2010, with the Platform Toolset switched to v100.
Adios,
Cactus Dan -
On 14/10/2014 at 06:12, xxxxxxxx wrote:
I'm not a hundred percent sure, but I don't think VS2010 can still be used to compile for R16. You need toolset v110 at minimum. Sorry
We are using VS2012 for R16 development. In my experience, VS2013 works as well for plugin development. -
On 14/10/2014 at 06:27, xxxxxxxx wrote:
Howdy,
What is the difference between the v100 and the v110 that causes that error?
Adios,
Cactus Dan -
On 14/10/2014 at 06:36, xxxxxxxx wrote:
To be honest, I don't know.
Do you have a later VS at hand, to give it a quick shot? -
On 14/10/2014 at 06:46, xxxxxxxx wrote:
Howdy,
No, I only have 2010 on Windows 7, at the moment. Has anyone successfully compiled the R16 sdk project with 2010?
Adios,
Cactus Dan -
On 14/10/2014 at 09:18, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Howdy,
What is the difference between the v100 and the v110 that causes that error?
Adios,
Cactus DanInsufficient support of C++11/C++0x as well as C++11/C++0x functions that didn't work or didn't work as they should according to the standard in Visual Studio 2010 (if memory serves me well).
Best regards,
Wilfried
-
On 17/10/2014 at 05:37, xxxxxxxx wrote:
I am getting the same errors!
@Cactus Dan: Did you solved it? And if so, what did you do. Go over to vs2012/vs2013?
-
On 17/10/2014 at 06:12, xxxxxxxx wrote:
pgrooff, which compiler are you trying to use?
Wilfried was not kidding with his statement.
I also see no real reason, not to use VS2012 or VS2013. VS2013 has a pretty nice express edition. And I use it at home to compile my plugins for C4D versions from R13 to R16 in one single solution.
On the other hand, you may try to get VS2010 to compile your stuff, but please understand, that SDK Support won't be able to help on this. Sorry. -
On 17/10/2014 at 06:55, xxxxxxxx wrote:
Howdy,
Originally posted by xxxxxxxx
...@Cactus Dan: Did you solved it? And if so, what did you do. Go over to vs2012/vs2013?...
Not yet. I may have to upgrade.
Originally posted by xxxxxxxx
...I also see no real reason, not to use VS2012 or VS2013. VS2013 has a pretty nice express edition...
Does the newer express edition compile for 64bit? In previous versions it only compiled for 32 bit.
Adios,
Cactus Dan -
On 17/10/2014 at 06:57, xxxxxxxx wrote:
Yes, both VS2012 and VS2013 are compiling 64-Bit as well.
-
On 17/10/2014 at 07:35, xxxxxxxx wrote:
I have upgraded to vs2012 express and use Visual Studio 2010 (v100) as platform.
But I keep getting d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_misc\general.h(207) : fatal error C1004: unexpected end-of-file found!What to do?
I already copied the file from another beta version, but it gives me the same error. -
On 17/10/2014 at 07:42, xxxxxxxx wrote:
As said I am using toolset v100 and not toolset v110.
Toolset v110 give me the following errors:------ Build started: Project: cinema.framework, Configuration: Release x64 ------
1> c4d_basebitmap.cpp
1> c4d_customdatatype.cpp
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_customdatatype.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_basebitmap.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
1> c4d_graphview.cpp
1> c4d_operatorplugin.cpp
1> c4d_particles.cpp
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_gv\c4d_graphview.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_gv\c4d_operatorplugin.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
1> c4d_help.cpp
1> lib_net.cpp
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_libs\lib_net.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_help.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
1>d:\program files\maxon\cinema 4d r16\frameworks\cinema.framework\source\c4d_gv\c4d_particles.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema.framework\x64_release\vc_cinema.framework_release_64bit.pdb', has an obsolete format, delete it and recompile
2>------ Build started: Project: cinema4dsdk, Configuration: Debug x64 ------
2> datatype.cpp
2> activeobject.cpp
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\gui\activeobject.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2> memstat.cpp
2> misctest.cpp
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\gui\memstat.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\datatype\datatype.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\other\misctest.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2> movecopyconstructors.cpp
2> paintundo.cpp
2> sculptbrushmultistamp.cpp
2> edgecuttool.cpp
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\painting\advanced\paintundo.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\other\movecopyconstructors.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source ool\edgecuttool.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
2>d:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\source\sculpting\sculptbrushmultistamp.cpp : fatal error C1051: program database file, 'd:\program files\maxon\cinema 4d r16\plugins\examples\cinema4dsdk\_obj\cinema4dsdk\x64_debug\vc_cinema4dsdk.pdb', has an obsolete format, delete it and recompile
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========-Pim
-
On 17/10/2014 at 07:46, xxxxxxxx wrote:
Pim, toolset v100 won't work. You need at least toolset v110.
Did you read the posted errors? It looks like, there's old debug info from VS2010 in your project folder. Cleanup your folder and try once more with toolset v110. -
On 17/10/2014 at 07:49, xxxxxxxx wrote:
Ok, it works!
I started with a clean sdk. Remove the old one and created a new one.
Changed Win32 to x64 and debug to release and pressed F7 --> everything ok!So vs 2012 express is working for me!
Andreas, thanks!
-Pim
-
On 17/10/2014 at 08:20, xxxxxxxx wrote:
Pim, I'm glad this is working for you now. You are welcome.
I'd give VS2013 a shot as well. I personally like this RockScroll like scroll bars, they implemented in there...Also I'd like to add, that you probably won't need to start from scratch. As long as you cleanup before transitioning. At least as far as I can remember I went directly from VS2010 to VS2013, using my project folders as they were. Of course a backup before doing so is recommended, as the .vxproj files will get modified and transition back won't work as smoothly (never tried it, but at least that's my intuition).
Cactus Dan, how about you? I'd like to close this issue, as I don't see an unanswered question...
-
On 21/11/2014 at 01:59, xxxxxxxx wrote:
Compiling the R13 SDK with VS2013 with no errors but two warnings:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1361,5) : warning MSB8012: TargetPath(C:\Program Files\MAXON\CINEMA 4D R13\resource\_api_lib\\_api.lib) does not match the Library's OutputFile property value (C:\Program Files\MAXON\CINEMA 4D R13\resource\_api_lib\_api_x64_Debug.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(1363,5) : warning MSB8012: TargetName(_api) does not match the Library's OutputFile property value (_api_x64_Debug). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
1> _api.vcxproj -> C:\Program Files\MAXON\CINEMA 4D R13\resource\_api_lib\\_api.libAny help how to fix that is very appreciated. Thank you.
-
On 21/11/2014 at 04:20, xxxxxxxx wrote:
Hello Klaus,
These warnings can be safely ignored.
If you want to you can fix the first like this:
Go to your project settings under General set the target extension to .cdl64 (for All Configurations, Platform x64) and to .cdl (for All Configurations, Platform Win32).For the second, I have to be honest, I don't get it here. I think, I have fixed it a long time ago or perhaps (as I was following Microbion's steps for project setup) I never ran into it. But it basically states the same, only for the API library. Please check the Target Name option in project settings General (for all four variants, win32 release+debug and x64 release+debug). I think it should be set to _api_$(Platform)_$(Configuration) for all configurations and all platforms.
NOTE: Before blaming me to have corrupted your project files. Please make a backup of your project before apllying changes. And perhaps take note of the parameter before you apply a change. And ALWAYS double check, which Configuration and which Platform is selected on top of the project settings. It's too easy to completely mix up project settings...
-
On 21/11/2014 at 06:39, xxxxxxxx wrote:
Thanks. The warnings are gone.