Page 1 of 1

Linking problem

Posted: Tue Sep 13, 2005 8:07 am
by Micha
Hello,

I think this was asked a thousand times... I am sorry.
I get the following linking error in my release build (VC++, wxWidgets 2.6.0).

wxmsw26_core.lib(app.obj) : error LNK2001: unresolved external symbol [email protected]
wxmsw26_core.lib(window.obj) : error LNK2001: unresolved external symbol [email protected]

I had the same problem with the Debug build but could find the solution. But I forget the solution :-(

I hope you can help me.

Thank you,
Micha.

Posted: Tue Sep 13, 2005 8:43 am
by Micha
Hello,

I added RPCRT4.LIB comctl32.lib - and these error message are gone... Hm, is this right?
Now , i got the last two messages...

wxbase26.lib(init.obj) : error LNK2001: unresolved external symbol __CrtSetDbgFlag
wxbase26.lib(init.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)"

I think here is something wrong...


Thank you again,
Micha.

Posted: Tue Sep 13, 2005 1:24 pm
by ssigala
Micha wrote: Now , i got the last two messages...
Are you sure you did compile your application with the same flags you used for compiling the wx library?

Posted: Tue Sep 13, 2005 1:31 pm
by Mahr
Micha wrote:Hello,
Now , i got the last two messages...
I had to add these libs to compile and link my application with windows
  • comctl32.lib comctl32.lib rpcrt4.lib wsock32.lib
and finally I include all wx-Libs

Hope it will help you