User forums > General (but related to Code::Blocks)
[solved] codeblocks 13.12 & wxWidgets 3.0 config, ld.exe cannot find -lwxmsw30u?
Aaron:
--- Quote ---So you've failed to set you wx global variable and thus the path is invalid.
Settings -> Global variables -> wx -> set proper paths
--- End quote ---
Failed to set them correctly anyway.
What additions or changes would you recommended from here.
I could not find folders for the empty fields obj, bin, cflags, and iflags.
Everything was working yesterday until I began chasing errors in one project, now I the error:
ld.exe||cannot find -lwxmsw30d_core|
Jenna:
Normally, you don't need to set anything but the base-path.
Aaron:
I just finished removing all traces of wxWidgets from my problem pc, then compiled a fresh copy.
A simple new project test still produces:
ld.exe cannot find -lwxmsw30d_core
I have his dialog at the end of the new project wizard also.
MortenMacFly:
Well of course you not only need the sources of wxWidgets but also the compiled libs... Compiled preferably with the target compiler of your project. Consult the wx docs how to do so.you'll also find some hints in the x::B wiki.
Aaron:
UPDATE
I determined that the file libwxmsw30u.a was missing from the C:\wxWidgets-3.0.2\lib\gcc_dll directory, so I copied and pasted it from another pc with wxWidgets & CodeBlocks which operates and builds as properly.
Now, this is the latest build log:
--- Code: ----------------- Build: Debug in 6Martest (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -LC:\wxWidgets-3.0.2\lib\gcc_dll -LC:\wxWidgets-3.0.2\lib\gcc_dll -o bin\Debug\6Martest.exe obj\Debug\_MartestApp.o obj\Debug\_MartestMain.o obj\Debug\resource.res -mthreads -lwxmsw30u -mwindows
Warning: .drectve `-aligncomm:"___hexdig_D2A",5' unrecognized
/mingw/lib/libmingw32.a(setargv.o):(.text+0x30): undefined reference to `___chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x673): undefined reference to `___chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x7e0): undefined reference to `___chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x81d): undefined reference to `___chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0x934): undefined reference to `___chkstk_ms'
/mingw/lib/libmingwex.a(glob.o):(.text+0xb78): more undefined references to `___chkstk_ms' follow
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 9 second(s))
6 error(s), 1 warning(s) (0 minute(s), 9 second(s))
--- End code ---
Then I realized I had an old MinGW installed im my C:\ directory, renamed it 'zz_MinGW', and the build is successful.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version