Code::Blocks Forums
User forums => Help => Topic started by: visir on May 20, 2017, 12:03:09 pm
-
Hello. Very new to codeblocks. Want to make codeblocks work with msys32 mingw compiler.
When I first started codeblocks, there was a window where I could select my compiler. How to open that window again?
-
Settings -> Compiler
-
Hm, no, that window could autodetect compilers.
Maybe I'll manage to get it to work, give me a minute. I just need to set paths correctly.
-
This is not very codeblocks related, but maybe somebody here knows.
I have 4 different include folders right now:
C:\msys64\mingw32\include
C:\msys64\mingw32\i686-w64-mingw32\include
C:\msys64\mingw64\include
C:\msys64\mingw64\x86_64-w64-mingw32\include
What's the difference between them?
-
For 32 bit MSys2 GCC Compiler I use these settings
Compiler Installation Directory: C:\Apps32\MSys2\mingw32
C Compiler: i686-w64-mingw32-gcc.exe
C++ Compiler: i686-w64-mingw32-g++.exe
Linker for Dynamic Libs: i686-w64-mingw32-g++.exe
Linker for static Libs: ar.exe (I am NOT sure that this is correct I have yet to make a static lib)
Tim S.
-
Okay, made a simple c++ project, it compiles and runs fine.
Can't get debugger to work though.
1) I'm setting breakpoints,
2) in settings -> debugger -> Default -> Executable path I have set full path to gdb.exe,
3) in project -> build options -> debug I have set "Produce debugging symbols -g"
4) set build target to debug
5) rebuild everything just in case
But program ignores all breakpoints and finishes. Did I miss something?
-
please post a full debugger log.
You maybe have to enable the full debugger logging in Settings->Debugger->Common (i do not remember the correct path to the setting, but it should be there somewhere)
The debugger log is found under the Debugger log tab in the messages panel
greetings
-
Sorry, I was pressing "run" arrow instead of "debug" arrow.
Seems to work now, thanks!