new and delete redefinitions
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/08/2010 at 11:57, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10
Platform: Mac OSX ;
Language(s) : C++ ;---------
This is getting on my nerves!!!MacOS 10.6
XCode 3.2.3
Cinema 4D R10.1 resourceI keep getting redefinition errors in my Main.cpp for void* operator new/new[] and void operator delete/delete[]. The headers have been juggled as much as I can juggle them and no results after hours. This is the same project copied from another plugin that doesn't have this issue so the build settings are identical. No exceptions enabled either. Can't fathom what else to do other than pick up the iMac and see how long it withstands an SUV run over it several dozen times...
For now, maybe I'll try my R10.5, R11, and R11.5 builds to see if they work. It is such a simple plugin with few complications and yet all I get is a frigging migrane from Apple. EIGHT builds done in Windows in less time than one damned build on Mac.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/08/2010 at 17:44, xxxxxxxx wrote:
I should update that Xcode 2.5 is being used and the same thing happens. No problem with R10.5 build in the same environment. No idea what else to do here, again.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/08/2010 at 18:07, xxxxxxxx wrote:
More info:
ge_dynamicarray.h is the culprit with the new/delete redefinition errors and, yes, this is in a multiprocessor context.
Is there anything to be done about this as nothing has worked at all!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/08/2010 at 04:50, xxxxxxxx wrote:
I had that too. It just started one day and I never found out why. To get it to compile i did this in main.cpp:
#ifdef OSX #undef gNew #define gNew new #endif
Pretty nasty hax, im sure.
Probably not a good idea to do this, but well, at least my mac plugins compile nowHope this helps you!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/08/2010 at 07:26, xxxxxxxx wrote:
I was considering undefing something but wasn't sure what.