I set up MinGW64, tested it working with a console app, compiled the libraries with "mingw32-make -f makefile.gcc CFG=64 BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1" and then again with BUILD=debug, which produced the folder "E:\CodeBlocks\wxWidgets\lib\gcc_lib64". Then created a new blank wxWidgets project and hit compile.
||=== Build: Debug in qq (compiler: GNU GCC64 Compiler) ===|
D:\Personal\CodeBlocks\qq\qqApp.cpp|33|warning: 'virtual bool wxEvtHandler::TryValidator(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3683|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3682|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqApp.cpp|33|warning: 'virtual bool wxEvtHandler::TryParent(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3686|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3685|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryValidator(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3683|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3682|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryParent(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3686|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3685|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetVirtualSizeHints(int, int, int, int)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|459|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::MakeModal(bool)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|688|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|1872|note: declared here|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryValidator(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3683|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3682|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryParent(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3686|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3685|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetVirtualSizeHints(int, int, int, int)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|459|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::MakeModal(bool)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|688|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|1872|note: declared here|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryValidator(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3683|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3682|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryParent(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3686|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3685|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetVirtualSizeHints(int, int, int, int)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|459|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::MakeModal(bool)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|688|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|1872|note: declared here|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryValidator(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3683|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3682|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual bool wxEvtHandler::TryParent(wxEvent&)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3686|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
E:\CodeBlocks\wxWidgets\include\wx\event.h|3685|note: in expansion of macro 'wxDEPRECATED_BUT_USED_INTERNALLY_INLINE'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetVirtualSizeHints(int, int, int, int)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|459|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::MakeModal(bool)' is deprecated [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|688|note: declared here|
E:\CodeBlocks\wxWidgets\include\wx\defs.h|615|note: in definition of macro 'wxDEPRECATED'|
D:\Personal\CodeBlocks\qq\qqMain.cpp|102|warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]|
E:\CodeBlocks\wxWidgets\include\wx\window.h|1872|note: declared here|
ld.exe||cannot find -lwxmsw30u|
ld.exe||cannot find -lwxpng|
ld.exe||cannot find -lwxjpeg|
ld.exe||cannot find -lwxtiff|
ld.exe||cannot find -lwxzlib|
ld.exe||cannot find E:\CodeBlocks\wxWidgets\lib\gcc_lib64\mswu: Permission denied|
ld.exe||cannot find E:\CodeBlocks\wxWidgets\lib\gcc_lib64\mswud: Permission denied|
||=== Build failed: 7 error(s), 22 warning(s) (0 minute(s), 10 second(s)) ===|
I found this
-------------- Build: Debug in qq (compiler: GNU GCC64 Compiler)---------------
x86_64-w64-mingw32-g++.exe -LE:\CodeBlocks\wxWidgets\lib\gcc_lib -LE:\CodeBlocks\wxWidgets\lib\gcc_lib64 -o bin\Debug\qq.exe obj\Debug\qqApp.o obj\Debug\qqMain.o obj\Debug\resource.res -mthreads -lwxmsw30u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxmsw30u.a when searching for -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib\libwxmsw30u.a when searching for -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxmsw30u.a when searching for -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64\libwxmsw30u.a when searching for -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxmsw30u.a when searching for -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxmsw30u.a when searching for -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw30u
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxpng.a when searching for -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib\libwxpng.a when searching for -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxpng.a when searching for -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64\libwxpng.a when searching for -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxpng.a when searching for -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxpng.a when searching for -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxpng
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxjpeg.a when searching for -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib\libwxjpeg.a when searching for -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxjpeg.a when searching for -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64\libwxjpeg.a when searching for -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxjpeg.a when searching for -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxjpeg.a when searching for -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxjpeg
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxtiff.a when searching for -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib\libwxtiff.a when searching for -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxtiff.a when searching for -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64\libwxtiff.a when searching for -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxtiff.a when searching for -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxtiff.a when searching for -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxtiff
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxzlib.a when searching for -lwxzlib
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib\libwxzlib.a when searching for -lwxzlib
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxzlib.a when searching for -lwxzlib
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64\libwxzlib.a when searching for -lwxzlib
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib/libwxzlib.a when searching for -lwxzlib
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible E:\CodeBlocks\wxWidgets\lib\gcc_lib64/libwxzlib.a when searching for -lwxzlib
E:/CodeBlocks/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxzlib
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
5 error(s), 0 warning(s) (0 minute(s), 1 second(s))
Says skipping incompatible... why in the world? I built them out my own working MinGW64.
Says skipping incompatible... why in the world? I built them out my own working MinGW64.
No, you likely did NOT.
I set the Windows PATH to point first to the Compiler I wish to build wxWidgets with.
Then, I do the wxWidgets build command.
Edit: Example I use to build. I normally use %PATH% where I have %SystemRoot%; but, I have sh.exe in my normal path which results in a weird build error. I am trying it using %SystemRoot% to see if it works. Edit2: Building wxWidgets 3.0.2 using "gcc version 5.2.0 (Rev4, Built by MSYS2 project)"; note it is the only GCC 5.2 that I know about able to build a working wxWidgets on Windows 7. Edit3: But, by now there should be several other MinGW64 installers that work; I started doing the builds a few month back using 5.1 and later 5.2.
MSys2 is NOT easy to learn how to use. If you give me details about the Compiler you are using I can try it on my 64 bit Windows 7 Laptop.
SET PATH=C:\Apps32\MSys2\mingw32\bin;%SystemRoot%
mingw32-make -f makefile.gcc CFG=32 CPPFLAGS="-DHAVE_TR1_TYPE_TRAITS" CXXFLAGS="-Wno-deprecated-declarations -Wno-unused-local-typedefs -fno-keep-inline-dllexport" MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
Tim S.
On x32 I can put breakpoints anywhere at any time during runtime and they instantly work... and anyways... I'd expect the break and terminate buttons to work. They always worked before. Now they do nothing.
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: D:\Personal\CodeBlocks\siw-test\
Adding source dir: D:\Personal\CodeBlocks\siw-test\
Adding file: D:\Personal\CodeBlocks\siw-test\bin\Debug\siw-test.exe
Changing directory to: D:/Personal/CodeBlocks/siw-test/.
Set variable: PATH=.;E:\CodeBlocks\wxWidgets\lib\gcc_lib;E:\CodeBlocks\MinGW\bin;E:\CodeBlocks\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Program Files (x86)\Smart Projects\IsoBuster;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;D:\Program Files (x86)\GnuPG\pub
[debug]Command-line: E:\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args D:/Personal/CodeBlocks/siw-test/bin/Debug/siw-test.exe
[debug]Working dir : D:\Personal\CodeBlocks\siw-test
Starting debugger: E:\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args D:/Personal/CodeBlocks/siw-test/bin/Debug/siw-test.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from D:/Personal/CodeBlocks/siw-test/bin/Debug/siw-test.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.9.1
[debug]Copyright (C) 2015 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "x86_64-w64-mingw32".
[debug]Type "show configuration" for configuration details.
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]Find the GDB manual and other documentation resources online at:
[debug]<http://www.gnu.org/software/gdb/documentation/>.
[debug]For help, type "help".
[debug]Type "apropos word" to search for commands related to "word".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.9.1
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source E:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory D:/Personal/CodeBlocks/siw-test/
[debug]Source directories searched: D:/Personal/CodeBlocks/siw-test;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: D:\Personal\CodeBlocks\siw-test\bin\Debug\siw-test.exe
Child process PID: 4496
[debug][New Thread 4496.0x2848]
Trying to pause the running process...
Trying to pause the running process...
Trying to pause the running process...
Trying to pause the running process...
Trying to pause the running process...
[debug][Inferior 1 (process 4496) exited normally]
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 4496) exited normally]
[debug]> quit
Debugger finished with status 0
EDIT: Found this http://sourceforge.net/p/mingw-w64/discussion/723798/thread/25ffa34d/ apparently x32/x64 issue. If anyone understands more about this, could you help please? Might or might not be the right thing though... my gdb.exe is 64bit. Tried checking "produce debugging symbols [-g]" in the compiler settings and did a full rebuild to no avail.
This is my exact issue
Forking
If your application uses the 'fork' system call you'll have trouble stopping the debugged program or setting breakpoints on the fly. Here is a link explaining the forking modes of GDB: http://sourceware.org/gdb/onlinedocs/gdb/Forks.html
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
What do I have to do? I don't have fork in my code at all but this is precisely what happens.
Wait it just got even better! I wanted to try and attach the debugger to a running instance so I went to the folder where the exe was compiled ran it and guess what, it instantly quits the process list after launch silently.
It seems like I spoke too soon about having "finally got it to work", this setup is sputtering and coughing blood barely holding together at all! It has in fact not even produced an executable that can run independently from the IDE despite (mis)leading me to believe so! What more do I have to do?