News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[solved]msys32 and codeblocks

Started by visir, May 20, 2017, 12:03:09 PM

Previous topic - Next topic

visir

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?

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

visir

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.

visir

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?

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

visir

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?

BlueHazzard

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

visir

Sorry, I was pressing "run" arrow instead of "debug" arrow.

Seems to work now, thanks!