User forums > General (but related to Code::Blocks)
[solved] codeblocks 13.12 & wxWidgets 3.0 config, ld.exe cannot find -lwxmsw30u?
v-italiano:
Hi
--- Quote from: imduke on February 28, 2014, 03:14:08 pm ---
...I just created the test project by click the wxWidget icon in the wizard, and follow the steps:
- wxWidgets version -> wxWidgets 3.0.x
- Preferred GUI Builder -> None; Application Type -> Frame Base
(What differs between Dialog Based and Frame Based? Sorry 4 this, I'm a noob)
...
--- End quote ---
Differs are showed in attached png
bye
-Vit
Aaron:
I am also dealing with a "ld.exe cannot find -lwxmsw30u"
In a larger tutorial project.
Build log:
mingw32-g++.exe -L(invalid)\lib\gcc_lib -o bin\Release\wxlConsole.exe obj\Release\portsEnum.o obj\Release\rs232.o obj\Release\wxlConsoleApp.o obj\Release\wxlConsoleMain.o obj\Release\resource.res -s -mthreads -lwxmsw30u -lwxpng
-lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid
-lcomctl32 -lwsock32 -lodbc32 -mwindows
C:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot find -lwxmsw30u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 2 second(s))
1 error(s), 0 warning(s) (0 minute(s), 2 second(s))
Can this be corrected in an existing project?
v-italiano:
For me general solution is:
1) to select in Workspace > "your project name" > Build Options > Search Directories
2) here to change in all three file pathes (Compiler, Linker, Resource Compiler)
each "...\gcc_dll\.." with "...\gcc48_dll\.."
3) to recompile
>Vit
Aaron:
--- Quote ---1) to select in Workspace > "your project name" > Build Options > Search Directories
2) here to change in all three file pathes (Compiler, Linker, Resource Compiler)
each "...\gcc_dll\.." with "...\gcc48_dll\.."
3) to recompile
--- End quote ---
Same result. :-\
C:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot find -lwxmsw30u
oBFusCATed:
--- Quote from: Aaron2 on March 06, 2015, 05:14:29 am ---mingw32-g++.exe -L(invalid)\lib\gcc_lib -o bin\Release\wxlConsole.exe obj\Release\portsEnum.o obj\Release\rs232.o obj\Release\wxlConsoleApp.o obj\Release\wxlConsoleMain.o obj\Release\resource.res -s -mthreads ......
--- End quote ---
So you've failed to set you wx global variable and thus the path is invalid.
Settings -> Global variables -> wx -> set proper paths
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version