User forums > General (but related to Code::Blocks)
CB with MinGW x64 and wxWidgets: linker can't find wxmsw30
Searinox:
Hello,
I have been successfully been using C::B with MinGW x32 and wxWidgets in the past. I recently installed MinGW x64 and I can get console applications to compile, but I am having issues with wxWidgets applications. The compile log says this:
||=== Build: Debug in test2gui (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw30u|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
There are another two threads on this topic on the forum, I have tried following advice from both but without success. Please tell me what other info I can provide. Thank you.
ouch:
The linker can't find the wxWidgets library is all. Be sure to add it's location to your linker search directories in the build options.
But this is not a Code Blocks issue, its a compiler and linker issue, as such you would get better help at someplace like Stackoverflow.
Searinox:
I have gone insane adding the library folders and subfolders to each search path in compiler settings and project, linker, resource compiler, everything, including the "wxWidgets\lib\gcc_dll\libwxmsw30u.a" file itself, paths both relative and absolute, and each one at a time, as well as every other place where its path could possibly be set and still the error will not go away. I know where the file is and I've set it to just about every path I could.
Are there any logs of any kind that I could look up to see what exactly the linker is trying to do?
I know for a fact that it AT LEAST stumbles upon the file, maybe it doesn't understand what it's found?!
stahta01:
Did you build wxWidgets 3.0 using your MinGW x64 Compiler?
If not, then why do you think it will work without having the wxWidgets 3.0 library on your system!
If yes, how did you build it?
Tim S.
Searinox:
MinGW x64 is set up and working - I can compile x64 command line applications with it.
wxWidgets was compiled using "mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1". This was also repeated for BUILD=debug. The debug gives an error about the same library but with an added "d" at the end. Am I using the wrong maker and is there another I need to use?
Navigation
[0] Message Index
[#] Next page
Go to full version