User forums > Help
updation compiler version
killerbot:
can you specify what is the path where you installed the gc113 ?
gd_on:
Do you execute the program from inside code::blocks or as a standalone one ?
From inside (green arrow at the top, or submenu Build/Run, or Ctrl-F10) it should work with gcc 13.1 as shown in your configuration. (It works for me, so gcc 13.1 is OK).
As standalone, running directly your .exe, you can have a problem if your Windows main PATH contains the old compiler path. C:\MingW64\bin should appear before the old compiler path (because your program need to know where is the right dll version of libstdc++-6.dll).
PS : for your information, it's also OK with gcc 8.1 but you have to force C++17 compatibility (at least) in the compiler options (as indicated in the journal during compile and link).
maxcy:
I did rename the minGW folder in CB so it cannot be used, then I compiled and ran the project again and got the same results! So CB is not using the CB compiler. I am compiling and running the exe from within CB! You saw my setup and we both agree that it is OK, but my IDE doesn't not work and yours does! Frustrating to say the least!!! I did check the path variable and I can see that my new minGW folder is at the end of a long list that uses minGW, so I'm going to move it to the front and try running the exe from the cmd window! At least that will prove the compiler and the exe are OK. I'll check back tomorrow on this issue.
maxcy / wt1v
stahta01:
Please post a build log in code tags.
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
maxcy:
After much monkeying around I finally got this thing working! But then I decided to use the debugger. The debugger after I looked at how it was used was very different than in the old version compiler. I used to go into the debug tab at the bottom of the IDE and find all the tabs I needed to run/stop and set watches. Not so in this new interface! At first all it showed was the debugger was not found, so I went into the debugger setting and set a path to the dgb.exe file and recompiled it. Still the same error message was shown, but I could see me making break points. I finally figured out that I had to clear the debugger window and recompile. Now everything was OK! I now found that all the debugger commands were at the top menu. So now everything looks OK!!! Thanks for the help!
maxcy / wt1v
Navigation
[0] Message Index
[*] Previous page
Go to full version