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:
Cinema 4D Version: R10
Platform: Mac OSX ;
Language(s) : C++ ;
This is getting on my nerves!!!
Cinema 4D R10.1 resource
I 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.
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.
On 06/08/2010 at 18:07, xxxxxxxx wrote:
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!
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:
#define gNew new
Pretty nasty hax, im sure.
Probably not a good idea to do this, but well, at least my mac plugins compile now
Hope this helps you!
On 07/08/2010 at 07:26, xxxxxxxx wrote:
I was considering undefing something but wasn't sure what.