Author Topic: Troubles linking with the wxWidgets static libraries  (Read 5914 times)

Offline DCelso

  • Single posting newcomer
  • *
  • Posts: 6
Troubles linking with the wxWidgets static libraries
« 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]

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Troubles linking with the wxWidgets static libraries
« Reply #1 on: August 22, 2008, 04:14:34 pm »
Remove the preprocessor definition "WXUSINGDLL".
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline DCelso

  • Single posting newcomer
  • *
  • Posts: 6
Re: Troubles linking with the wxWidgets static libraries
« Reply #2 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