User forums > Using Code::Blocks

How to change the "wxWidgets library settings" in a created project?

(1/3) > >>

00061205:
I checked the "use wxWidgets dll" option when I create my project. However, now I want to link my app to a static library. What I should do?

TDragon:
1. If you aren't using wxPack, ensure that you've built wxWidgets as a static library (SHARED=0).
2. In the Linker search directories of your project's Build options, alter the path ending in "gcc_dll" to end in "gcc_lib".

00061205:

--- Quote from: TDragon on July 21, 2008, 05:05:45 pm ---1. If you aren't using wxPack, ensure that you've built wxWidgets as a static library (SHARED=0).
2. In the Linker search directories of your project's Build options, alter the path ending in "gcc_dll" to end in "gcc_lib".

--- End quote ---
Yes, I'm using wxPack. However, after I alter the gcc_dll to end in gcc_lib the project can't compile successfully

TDragon:
Ah yes, I forgot that there are additional libraries that need to be brought in.
Try adding the following (to the Link libraries list under the Linker settings tab):
libwxpng.a
libwxzlib.a
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

These are the libraries that normally get brought in when the DLL is created, but which you have to bring in yourself when using the non-DLL version.

00061205:

--- Quote from: TDragon on July 22, 2008, 04:53:41 pm ---Ah yes, I forgot that there are additional libraries that need to be brought in.
Try adding the following (to the Link libraries list under the Linker settings tab):
libwxpng.a
libwxzlib.a
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

These are the libraries that normally get brought in when the DLL is created, but which you have to bring in yourself when using the non-DLL version.

--- End quote ---
wow! So complicated. Maybe the developers could improve that in the next nighty build.

Navigation

[0] Message Index

[#] Next page

Go to full version