Hi there,
I'm using Code:Blocks with a gtk library. I can compile some codes, and not others. I spent a while comparing the build log for those that I can compile with those that I remained unable to compile. Here is a copy of the build log for those that I failed to compile:
-------------- Build: Release in event (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -L"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib" -L"C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib" -o bin\Release\event.exe obj\Release\main.o -s -lgtk-win32-2.0 -lgobject-2.0 -lglib-2.0 "C:\Program Files (x86)\CodeBlocks\gtk\lib\pango-1.0.lib" "C:\Program Files (x86)\CodeBlocks\gtk\lib\gdk-win32-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gtk-win32-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gdk-win32-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\gobject-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\glib-2.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\pango-1.0.lib" "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\cairo.lib" -mwindows
mingw32-g++.exe: error: C:\Program Files (x86)\CodeBlocks\gtk\lib\pango-1.0.lib: No such file or directory
mingw32-g++.exe: error: C:\Program Files (x86)\CodeBlocks\gtk\lib\gdk-win32-2.0.lib: No such file or directory
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
The problem is simple, although I cannot solve it. For some unknown reason the compiler is looking for libraries in "C:\Program Files (x86)\CodeBlocks\gtk\lib\" and not in "C:\Program Files (x86)\CodeBlocks\MinGW\gtk\lib\". However, nowhere in my compiler/linker settings, I've indicated "C:\Program Files (x86)\CodeBlocks\gtk\lib\" as the place were libraries are. I've looked at:
- Settings -> Compiler -> Linker settings.
- Settings -> Compiler -> Search directories -> Compiler.
- Settings -> Compiler -> Search directories -> Linker.
Where this "decision" for Code:Blocks to look for libraries into "C:\Program Files (x86)\CodeBlocks\gtk\lib\" is coming from?
Any help on this will be (more than) welcomed.
Thanks in advance & cheers, Eric.