Code::Blocks Forums
User forums => Help => Topic started by: gReaen on February 23, 2008, 12:41:43 pm
-
Hey,
I have installed Code Blocks nightly build 4893 with wxWidgets 2.8.7 and MinGW 5.1
I am trying to build the default dialog in wxWidgets application option. But i get an error message that: ld.exe cannot find -lwxmswd_core...
The build log is as follows:
----------------------------------------
mingw32-g++.exe -LD:\Projects\wxWidgets-2.8.7\lib\gcc_dll -LD:\MinGW\lib -LD:\Projects\wxWidgets-2.8.7\lib\codeblocks -o bin\Debug\project1.exe obj\Debug\project1Main.o obj\Debug\project1App.o obj\Debug\resource.res -lwxmsw28d_core -lwxbase28d -lwxpngd -lwxzlibd -mwindows
D:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28d_core
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 0 warnings
My wxWidgets is at D:\Projects\wxWidgets-2.8.7
MinGw is at D:\MinGW
CodeBlocks is at D:\Projects
I followed the steps given in this tutorial: http://www.seebeck.com.ve/wink.html
Can someone please help???? I seriously want to build project with dialog in CB for my cross platform frontend project... :(
-
But i get an error message that: ld.exe cannot find -lwxmswd_core...
You did compile wx as monolithic version but want to use it as non-monolithic (component based) in your project. You basically either compiled wx wrong (if you want to stay component based) or setup your C::B project wrong (if you had monolithic in mind).
I followed the steps given in this tutorial: http://www.seebeck.com.ve/wink.html
I have never seen this tutorial and it's most likely non-official at least not of us. I strongly suggest you do what's written in the WiKi of Code::Blocks and not any 3rd party pooper webpage. If you follow the WiKi steps you will:
1.) get a monolitic wx version and
2.) using the wx wizard bundled with a recent nightly you will be able to setup a wx project properly.
With regards, Morten.
-
I uninstalled all the previous installations. I followed the Wikipedia method of installing nightly build of CodeBlocks. But i still get the same error. Also, even if i use wxmsw28u_gcc_cb.dll, i get an option asking link to wxWidgets library when i start a new project and not able to proceed without providing the link. Is this valid? :(
-
Try following the directions in the wxWindowsQuickRef (http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef), linked directly from the User Documentation page in the Wiki.