link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)" Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
mael15
Super wx Problem Solver
Super wx Problem Solver
Posts: 449
Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany

link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"

Post by mael15 » Wed Oct 30, 2019 11:17 am

I have a weird Link error:
systemstate.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl endecrypt::wxObjectArrayTraitsForArrayOfUsers::Free(class User *)" ([email protected]@[email protected]@[email protected]@@Z)".
endecrypt is a dll that i wrote long ago, Free is used nowhere, wxObjectArrayTraitsForArrayOfUsers is completely unknown to Google and the wxWidgets source code.
What is going on here?!?

User avatar
doublemax
Moderator
Moderator
Posts: 15267
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"

Post by doublemax » Wed Oct 30, 2019 11:25 am

wxObjectArrayTraitsForArrayOfUsers is a generated name:
https://github.com/wxWidgets/wxWidgets/ ... rrimpl.cpp

Maybe this gets you on the right track.
Use the source, Luke!

mael15
Super wx Problem Solver
Super wx Problem Solver
Posts: 449
Joined: Fri May 22, 2009 8:52 am
Location: Bremen, Germany

Re: link error "wxObjectArrayTraitsForArrayOfUsers::Free(class User *)"

Post by mael15 » Wed Oct 30, 2019 12:00 pm

It did, thank you! I had to use WX_DECLARE_USER_EXPORTED_OBJARRAY instead of WX_DECLARE_OBJARRAY.
=D> =D> =D>

Post Reply