SDK compile errors
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/03/2004 at 18:08, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;---------
Howdy,OK, I've purchased the additional Mac Classic liscense for Codewarrior 9, and tried to compile the SDK and got these errors:
1. Exception specification list mismatch c4d_memory.h line 36 void operator delete(void *p);
2. Exception specification list mismatch c4d_memory.h line 37 void operator delete[](void *p);
3. Exception specification list mismatch c4d_memory.h line 52 {
4. Exception specification list mismatch c4d_memory.h line 61 {
5. could not find or load the file "_api_v8_mac_rel.lib" for target "CINEMA4D SDK (Final)" for project "cinema3dsdk.prj".And these Warnings:
1. Deleting a void pointer is undefined c4d_memory.cpp line 72 delete p;
2. Deleting a void pointer is undefined c4d_memory.cpp line 77 delete[] p;I searched my hardrive for the "_api_v8_mac_rel.lib" file but I don't seem to have it. I noticed in the project window there is also another file listed called "_api_v8_mac_deb.lib" which is also not on my hardrive. I reinstalled from the updater CD but those files are still not there.
Are the missing files the reason for the errors?
Adios,
Cactus Dan -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/04/2004 at 01:47, xxxxxxxx wrote:
Hmno, these missing files are the result of your errors...these are the libs that are to be compiled, the sdk himself deb is the lib for debugging, rel the lib to build a release version of your plugin. But with the errors, I have no idea why they occure.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/04/2004 at 07:50, xxxxxxxx wrote:
You need to compile the Mac library files (in resource/_api_lib/_api_v8.prj).
Also the API was created with v8 of CW, it is possible they have changed the rules slightly so you may have to adjust the project options or change some of the API files to "fix" the errors. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/04/2004 at 02:07, xxxxxxxx wrote:
More specifically, I think the resolution is:
Errors 1--4: Add "throw()" to make the compiler trust your function. (e.g. "void operator delete(void* p) throw();")
Error 5: What David said.
Warnings 1--2: Call the "operator delete" functions a couple of lines above explicitly, or simply duplicate the code in them.
(I don't have CW9, so I cannot test this, but it seems reasonable based on the error messages and reports in comp.sys.mac.programmer.codewarrior.)