Code::Blocks Forums

User forums => Help => Topic started by: DCelso on August 22, 2008, 10:35:16 am

Title: Troubles linking with the wxWidgets static libraries
Post by: DCelso on August 22, 2008, 10:35:16 am
Hello to all,
I have troubles when I want link my application with static libraries for do a standalone executable. The trouble is that it seams still using dynamic libraries because the compiler errors says lines like this one:
C:/programs/codeblocks/workspace/condoServer/condoServerMain.cpp:174: undefined reference to `__imp___ZN7wxFrameD2Ev'

I attach a word file with the entire explanation.

Earlier thanks to all.

[attachment deleted by admin]
Title: Re: Troubles linking with the wxWidgets static libraries
Post by: TDragon on August 22, 2008, 04:14:34 pm
Remove the preprocessor definition "WXUSINGDLL".
Title: Re: Troubles linking with the wxWidgets static libraries
Post by: DCelso on August 25, 2008, 08:58:52 am
Thanks,
is necesary add the next libraries too:

libkernel32.a
libuser32.a
libgdi32.a
libwinspool.a
libcomdlg32.a
libadvapi32.a
libshell32.a
libole32.a
liboleaut32.a
libuuid.a
libcomctl32.a
libwsock32.a
libodbc32.a