User forums > Using Code::Blocks
unrecognised emulation mode: windows error
spflanze:
Thanks for your linker recommendations. They solved the linker errors. I was able to compile a Debug version. But I was not able to step through its code. When starting a debug run with the red arrowhead the program's window did not open. It did open when I did a non-debug run using the green arrowhead. This is with wxWidgets compiled with the posix option.
The wizard created starter project can be downloaded from:
http://www.mediafire.com/file/1blj22yu8jgkfje/TIA_Designer.zip/file
The default.conf file can be downloaded from:
http://www.mediafire.com/file/2mzr2ul4vhx2lj3/default.conf/file
stahta01:
--- Quote from: spflanze on May 31, 2019, 05:09:45 am ---Thanks for your linker recommendations. They solved the linker errors. I was able to compile a Debug version. But I was not able to step through its code. When starting a debug run with the red arrowhead the program's window did not open. It did open when I did a non-debug run using the green arrowhead.
--- End quote ---
I have little ability to help with any debugging related issues; it is something I know very little about.
Tim S.
BlueHazzard:
--- Quote ---. When starting a debug run with the red arrowhead the program's window did not open
--- End quote ---
What does the debugger log say?
Please enable full debugger logging somewhere in Debugger->Settings->XXXXX to get a more informative output
spflanze:
The Debugger tab:
--- Code: ---Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Engineering Software\Test Posix\
Adding source dir: C:\Engineering Software\Test Posix\
Adding file: C:\Engineering Software\Test Posix\bin\Debug\Test Posix.exe
Changing directory to: C:/ENGINE~1/TESTPO~1/.
Set variable: PATH=.;C:\wxWidgets-3.1.2-posix\lib\gcc_dll;C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64;C:\Program Files (x86)\Pico Technology\SDK\lib;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Pololu\Simple Motor Controller\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin;C:\Program Files\doxygen\bin;C:\Anaconda2;C:\Anaconda2\Scripts;C:\Anaconda2\Library\bin;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files (x86)\nodejs;C:\KicadBOM;C:\Program Files (x86)\Raisonance\Ride\bin;C:\Program Files (x86)\Pico Technology\PicoScope6;C:\Program Files (x86)\Pico Technology\Pico Full;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\IVI Foundation\IVI\Bin;C:\Program Files\IVI Foundation\IVI\Bin;C:\Program Files (x86)\National Instruments\Shared\LabVIEW CLI;C:\Program Files\TortoiseSVN\bin;C:\Users\spflanze\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\spflanze\AppData\Local\Programs\Python\Python36-32;C:\Users\spflanze\AppData\Roaming\npm;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\Dr. Memory\bin
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/ENGINE~1/TESTPO~1/bin/Debug/TESTPO~1.EXE
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.6.1
Starting the debuggee failed: No symbol table loaded. Use the "file" command.
Debugger finished with status 0
--- End code ---
The Build log tab:
--- Code: ----------------- Clean: Debug in Test Posix (compiler: GNU GCC Compiler)---------------
Cleaned "Test Posix - Debug"
-------------- Build: Debug in Test Posix (compiler: GNU GCC Compiler)---------------
g++.exe -Wall -pipe -mthreads -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -g -IC:\wxWidgets-3.1.2-posix\include -IC:\wxWidgets-3.1.2-posix\lib\gcc_dll\mswud -c "C:\Engineering Software\Test Posix\wx_pch.h" -o wx_pch.h.gch\Debug_wx_pch_h_gch
windres.exe -IC:\wxWidgets-3.1.2-posix\include -IC:\wxWidgets-3.1.2-posix\lib\gcc_dll\mswud -J rc -O coff -i C:\ENGINE~1\TESTPO~1\resource.rc -o obj\Debug\resource.res
g++.exe -Wall -pipe -mthreads -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -g -IC:\wxWidgets-3.1.2-posix\include -IC:\wxWidgets-3.1.2-posix\lib\gcc_dll\mswud -c "C:\Engineering Software\Test Posix\Test_PosixApp.cpp" -o obj\Debug\Test_PosixApp.o
g++.exe -Wall -pipe -mthreads -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -g -IC:\wxWidgets-3.1.2-posix\include -IC:\wxWidgets-3.1.2-posix\lib\gcc_dll\mswud -c "C:\Engineering Software\Test Posix\Test_PosixMain.cpp" -o obj\Debug\Test_PosixMain.o
x86_64-w64-mingw32-g++.exe -LC:\wxWidgets-3.1.2-posix\lib\gcc_dll -o "bin\Debug\Test Posix.exe" obj\Debug\Test_PosixApp.o obj\Debug\Test_PosixMain.o obj\Debug\resource.res -mthreads -lwxmsw31ud -mwindows
Output file is bin\Debug\Test Posix.exe with size 928.49 KB
Process terminated with status 0 (0 minute(s), 13 second(s))
0 error(s), 0 warning(s) (0 minute(s), 13 second(s))
--- End code ---
I do not know what this "file" command is.
The -g option was in effect.
Pecan:
gdb does not like paths and files with blanks in the names.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version