Linking problem

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
Micha
Knows some wx things
Knows some wx things
Posts: 25
Joined: Tue Aug 02, 2005 7:07 pm

Linking problem

Post 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 __imp__InitCommonControls@0
wxmsw26_core.lib(window.obj) : error LNK2001: unresolved external symbol __imp___TrackMouseEvent@4

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.
Micha
Knows some wx things
Knows some wx things
Posts: 25
Joined: Tue Aug 02, 2005 7:07 pm

Post 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.
ssigala
Earned some good credits
Earned some good credits
Posts: 109
Joined: Fri Sep 03, 2004 9:30 am
Location: Brescia, Italy

Post 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?
Sandro Sigala - Kynosoft, Brescia
Mahr
Experienced Solver
Experienced Solver
Posts: 75
Joined: Fri Aug 26, 2005 10:27 am

Post 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
Damage controll is easy, reading Klingon that's hard
Post Reply