Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Compile error [SOLVED]

 Post Reply Post Reply Page  12>
Author
Message
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 1053
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Topic: Compile error [SOLVED]
    Posted: 2014 Oct 13 at 3:23pm

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
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 13 at 10:41pm
Hi,
can you please provide the version of VisualStudio or whatever IDE/compiler you use?
Cheers,
Andreas
SDK Support Engineer
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 1053
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 14 at 6:06am
Howdy,

I'm using MSVC 2010, with the Platform Toolset switched to v100.

Adios,
Cactus Dan
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 14 at 6:12am
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 Cry
We are using VS2012 for R16 development. In my experience, VS2013 works as well for plugin development.



Edited by Andreas Block - 2014 Oct 14 at 6:16am
Cheers,
Andreas
SDK Support Engineer
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 1053
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 14 at 6:27am
Howdy,

What is the difference between the v100 and the v110 that causes that error?

Adios,
Cactus Dan
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 14 at 6:36am
To be honest, I don't know. Ouch
Do you have a later VS at hand, to give it a quick shot?
Cheers,
Andreas
SDK Support Engineer
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 1053
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 14 at 6:46am
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
Back to Top
wbeh View Drop Down
Member
Member


Joined: 2009 Sep 12
Location: Germany
Online Status: Offline
Posts: 245
Post Options Post Options   Quote wbeh Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 14 at 9:18am
Originally posted by Cactus Dan

Howdy,
What is the difference between the v100 and the v110 that causes that error?
Adios,
Cactus Dan


Insufficient 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
Back to Top
pgrooff View Drop Down
Member
Member


Joined: 2010 Nov 05
Online Status: Offline
Posts: 812
Post Options Post Options   Quote pgrooff Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 5:37am
I am getting the same errors!

@Cactus Dan: Did you solved it? And if so, what did you do. Go over to vs2012/vs2013?
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 6:12am
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.


Edited by Andreas Block - 2014 Oct 17 at 6:13am
Cheers,
Andreas
SDK Support Engineer
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 1053
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 6:55am
Howdy,
Originally posted by pgrooff

...@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 Andreas Block

...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. Ouch

Adios,
Cactus Dan
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 6:57am
Yes, both VS2012 and VS2013 are compiling 64-Bit as well.
Cheers,
Andreas
SDK Support Engineer
Back to Top
pgrooff View Drop Down
Member
Member


Joined: 2010 Nov 05
Online Status: Offline
Posts: 812
Post Options Post Options   Quote pgrooff Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 7:35am
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.
Back to Top
pgrooff View Drop Down
Member
Member


Joined: 2010 Nov 05
Online Status: Offline
Posts: 812
Post Options Post Options   Quote pgrooff Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 7:42am
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\tool\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
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 7:46am
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.

Cheers,
Andreas
SDK Support Engineer
Back to Top
pgrooff View Drop Down
Member
Member


Joined: 2010 Nov 05
Online Status: Offline
Posts: 812
Post Options Post Options   Quote pgrooff Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 7:49am
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


Edited by pgrooff - 2014 Oct 17 at 7:50am
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Oct 17 at 8:20am
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...
Cheers,
Andreas
SDK Support Engineer
Back to Top
Klaus Heyne View Drop Down
Member
Member
Avatar

Joined: 2003 Jan 28
Location: Germany
Online Status: Offline
Posts: 287
Post Options Post Options   Quote Klaus Heyne Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Nov 21 at 1:59am
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.lib

Any help how to fix that is very appreciated. Thank you.
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1812
Post Options Post Options   Quote Andreas Block Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Nov 21 at 4:20am
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...


Edited by Andreas Block - 2014 Nov 21 at 4:23am
Cheers,
Andreas
SDK Support Engineer
Back to Top
Klaus Heyne View Drop Down
Member
Member
Avatar

Joined: 2003 Jan 28
Location: Germany
Online Status: Offline
Posts: 287
Post Options Post Options   Quote Klaus Heyne Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Nov 21 at 6:39am
Thanks. The warnings are gone.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.109 seconds.