User forums > Using Code::Blocks
A matching debug configuration cannot be found in the wxWidgets directory...
Jenna:
--- Quote from: MortenMacFly on June 24, 2012, 05:42:59 pm ---
--- Quote from: ljones on June 23, 2012, 06:37:03 pm ---Just rebuilt everything without changing any names. Same problem.
--- End quote ---
Full build log, please?
--- End quote ---
You still did not post the full build log, or better the relevant part of it.
Full build log means the build log with full commandline logging enabled.
See MortenMacFly's signature for a link, that tells you how to turn it on, or search the forum.
ljones:
Added "$(#wx.lib)\gcc_dll\mswu" and "$(#wx.lib)\gcc_dll\mswud" as compiler search directories and "$(#wx.lib)\gcc_dll" as a linker search directory and it all compiles now. It still gives me the warnings about matching configurations when creating a new project, but I guess that's just a minor annoyance at this point.
Build log:
--- Code: ---Build started on: 26-06-2012 at 10:20.30
Build ended on: 26-06-2012 at 10:20.35
-------------- Build: Debug in test2 ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wno-attributes -Wall -g -IC:\libraries\wxWidgets-2.8.12\\include -IC:\libraries\wxWidgets-2.8.12\\contrib\include -IC:\libraries\wxWidgets-2.8.12\\lib\gcc_lib\mswu -IC:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswu -IC:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswud -c C:\Users\laj\Documents\cpp_problems\test2\test2App.cpp -o obj\Debug\test2App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wno-attributes -Wall -g -IC:\libraries\wxWidgets-2.8.12\\include -IC:\libraries\wxWidgets-2.8.12\\contrib\include -IC:\libraries\wxWidgets-2.8.12\\lib\gcc_lib\mswu -IC:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswu -IC:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswud -c C:\Users\laj\Documents\cpp_problems\test2\test2Main.cpp -o obj\Debug\test2Main.o
windres.exe -i C:\Users\laj\DOCUME~1\CPP_PR~1\test2\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\libraries\wxWidgets-2.8.12\\include -IC:\libraries\wxWidgets-2.8.12\\lib\gcc_lib\mswu
mingw32-g++.exe -LC:\libraries\wxWidgets-2.8.12\\lib\gcc_lib -LC:\libraries\wxWidgets-2.8.12\lib\gcc_dll -o bin\Debug\test2.exe obj\Debug\test2App.o obj\Debug\test2Main.o obj\Debug\resource.res -mthreads -lwxmsw28u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
Output size is 428.18 KB
Process terminated with status 0 (0 minutes, 4 seconds)
0 errors, 0 warnings
--- End code ---
Still getting the dll error at runtime.
edit: Found the .dll files in "C:\libraries\wxWidgets-2.8.12\lib\gcc_dll". Made sure the "Use wxWidgets DLL", "wxWidgets is built as a monolithic library", and "Enable unicode" boxes were all checked at the end of project creation. Between this and the added compiler & linker search directories mentioned above, warnings are gone and code compiles and runs as expected. Thanks.
edit2: Unsure if it's possible/how to mark solved.
MortenMacFly:
--- Quote from: ljones on June 26, 2012, 05:22:01 pm ---
--- Code: ---mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wno-attributes -Wall -g -IC:\libraries\wxWidgets-2.8.12\\include -IC:\libraries\wxWidgets-2.8.12\\contrib\include -IC:\libraries\wxWidgets-2.8.12\\lib\gcc_lib\mswu -IC:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswu -IC:\libraries\wxWidgets-2.8.12\lib\gcc_dll\mswud -c C:\Users\laj\Documents\cpp_problems\test2\test2App.cpp -o obj\Debug\test2App.o
--- End code ---
Still getting the dll error at runtime.
--- End quote ---
That doesn't surprise. Make sure you are not mixing too much path's and settings here. What you do currently is to compile with default wxWidgets unicode settings but tell the compiler/linker to search for includes/libs in debug folders, too (which is very bad). You have to understand that you need to use specific flags and include folders for each different build of wxWidgets. Don't mix them. If unsure, compile at command line first and then transfer the settings to the IDE.
ljones:
--- Quote from: MortenMacFly on June 26, 2012, 05:38:58 pm ---That doesn't surprise. Make sure you are not mixing too much path's and settings here. What you do currently is to compile with default wxWidgets unicode settings but tell the compiler/linker to search for includes/libs in debug folders, too (which is very bad). You have to understand that you need to use specific flags and include folders for each different build of wxWidgets. Don't mix them. If unsure, compile at command line first and then transfer the settings to the IDE.
--- End quote ---
Not sure I'm following. Like I said, it's working now, but if this is going to be an issue, would simply removing ""$(#wx.lib)\gcc_dll\mswud"" and leaving only ""$(#wx.lib)\gcc_dll\mswu" in the compiler search directories be enough to mitigate it?
Navigation
[0] Message Index
[*] Previous page
Go to full version