new-delete linker error (!)

new-delete linker error (!)

Anonymous
Not applicable
361 Views
3 Replies
Message 1 of 4

new-delete linker error (!)

Anonymous
Not applicable
Hi,

I got this error after I dont know have many times I had already built my project woith no problems. (!)

error LNK2019 :

Nicht aufgeloestes externes Symbol "private: static void * __stdcall AcHeapOperators::allocRawMem(unsigned int)" (?allocRawMem@AcHeapOperators@@CGPAXI@Z), verwiesen in Funktion "public: static void * __cdecl AcHeapOperators::operator new(unsigned int)" (??2AcHeapOperators@@SAPAXI@Z)

error LNK2019 :

Nicht aufgeloestes externes Symbol "private: static void __stdcall AcHeapOperators::freeRawMem(void *)" (?freeRawMem@AcHeapOperators@@CGXPAX@Z), verwiesen in Funktion "public: static void __cdecl AcHeapOperators::operator delete(void *)" (??3AcHeapOperators@@SAXPAX@Z)

The compiler doesnt allow me to use Autocads new and delete functions any more. (Example: AcDbGroup *pGroup = new AcDbGroup;)
The libraries I am linking to are:
rxapi.lib
acdb16.lib
acge16.lib
acgiapi.lib
achapi16.lib
acISMobj16.lib
acad.lib
acedapi.lib
adui16.lib
anav.lib
acui16.lib
acdblclkeditpe.lib

Thanks for any help!!

-a
0 Likes
362 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
hello,

 

maybe your are not connected to your "inc" folder
anymore, shiped with the arx environment .

you find this at "extra->optionen->"
Tab->"verzeichnisse"

 

if the folder is 
size=2>present, try to include the h-file, using the "h" button at the
arx-addin-wizard. this button includes the file for you.

 

 

regards

chris
0 Likes
Message 3 of 4

Anonymous
Not applicable
Hello,

Thank you, but it didnt solve it. I went to the folder, and the include file wasnt set. (i couldnt figure out how to do it with the object arx wizard :s) anyhow, this error is very strange. if i ever find out why it happens, i will post the misterious reason. 😞

-adriana
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hello!!!

I finally found out the reason for this incredible linker error. As expected, it was completely my fault. At some point I increased the warning level of the compiler and systematically 'corrected' everything... by doing this I did something really 'bad',... I altered one of the object arx header files... and it obviously never linked again!! thanks for any help anyway!!

-adriana
0 Likes