I am using CodeBlocks 13.12 on a Win 7 x64 machine. My intention was to learn a bit about building a wxWidgets project in CodeBlocks, so I created a new wxWidgets project, pointing the location of wxWidgets to "C:\wxWidgets-3.0.1" . Then added all the source files from the sample in the project and trying to build the project in the IDE, I get these errors :
||=== Build: Debug in widgetsSample (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmswd_core|
ld.exe||cannot find -lwxbased|
ld.exe||cannot find -lwxpngd|
ld.exe||cannot find -lwxzlibd|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
How do I make corrections so that these errors disappear and project gets built ?
As an additional info, I downloaded the "wxWidgets-3.0.1.tar.bz2, 2014-06-15, 20.1 MB" and followed a Youtube tutorial on compiling the sources with CMD and mingw32-make. I don't suppose that made a big difference since that only produced .O and .D files in "C:\wxWidgets-3.0.1\build\msw\gcc_mswud" folder. Well if someone cared to explain this process and its use as well I would extra appreciate it as a total beginner.
EDIT 1:
This is a snapshot of linker settings that I believe is relevant to the answer:
By the looks of it you did not set the libs dir for the linker. Should be something like Menu "Project"
-> Build Options
-> Linker settings
.
Compiling sources does make another big difference, see "C:\wxWidgets-3.0.1\libs".