User forums > Help
hello and question about setting project global variable base directory for wx
ghostcoder:
yes I believe I compiled the release library.
What should I do then? Do I need to recompile wxWidgets or can I simply remove this problem another way?
-------
-------------- Build: Debug in test ---------------
Linking executable: bin\Debug\test.exe
c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud
Jenna:
--- Quote from: ghostcoder on August 26, 2010, 09:47:13 am ---yes I believe I compiled the release library.
What should I do then? Do I need to recompile wxWidgets or can I simply remove this problem another way?
-------
-------------- Build: Debug in test ---------------
Linking executable: bin\Debug\test.exe
c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud
--- End quote ---
If you do not want to debug wxwidgets itself (I think you don't want taht), you can change your projects build options as follows:
target Debug:
change "Linker settings -> Link libraries:" from "libwxmsw28ud.a" to "libwxmsw28u.a" (just remove the "d" )
change "Search directories -> Compiler" and "Resource compiler" remove the "d" from "mswud"
remove __WXDEBUG__ from "Compiler settings -> #defines"
A side-effect: It should work without the need to copy "setup.h" now.
You are still able to debug your own code.
ghostcoder:
Ok I did what you said and at first it gave me more errors, but then I hit 'rebuild' and it worked!
I was then able to build and run it and it launched the little app. Only thing now is that it is putting the exe file in a bin\Debug folder. I guess it still thinks the project is in debug mode. I'm totally new to Code Blocks and compiling, but I think it's pretty awesome so far. Thanks very much for your help, you've been patient. Much appreciated.
Jenna:
You use the debug-target (to be able debug your app), but you can change it by chosing the release-target from the dropdown-list in the build-toolbar.
ghostcoder:
Ok cool I see that and I was able to compile for release. Awesome.
It works when I build and run from the Code Blocks, however, when I double click the .exe I've generated, I now get the error This app has failed to start because wsmsw28u_gcc_custom.dll was not found.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version