Author Topic: Codeblocks and gcc - missing some settings in codeblocks  (Read 2119 times)

Offline garwin

  • Multiple posting newcomer
  • *
  • Posts: 11
Codeblocks and gcc - missing some settings in codeblocks
« on: July 30, 2023, 11:46:23 am »
Till today I have run Codeblocks (svn build  rev 12847 (2022-07-07 18:10:48)) on Win10 with gcc 12.1 - 64 bit.
I have tried to update gcc to newer version 13.1 - 64 bit creating in "settings/compiler" copy and set new compiler's installation directory.  I have check all paths in Toolchain executables and there are OK.

EDIT: I am certainly missing some settings. If I modify default settings to path to gcc version 13.1, than compiling is still done through 12.1, even if 12.1 has no path set up.

||=== Build: Debug in New (compiler: GNU GCC Compiler 13.1) ===|
ld.exe||cannot find -lgmon: No such file or directory|
ld.exe||cannot find -lstdc++: No such file or directory|
ld.exe||cannot find -lmingw32: No such file or directory|
ld.exe||cannot find -lgcc: No such file or directory|
ld.exe||cannot find -lgcc_eh: No such file or directory|
ld.exe||cannot find -lmoldname: No such file or directory|
ld.exe||cannot find -lmingwex: No such file or directory|
ld.exe||cannot find -lmsvcrt: No such file or directory|
ld.exe||cannot find -lkernel32: No such file or directory|
ld.exe||cannot find -lgmon: No such file or directory|
ld.exe||cannot find -lpthread: No such file or directory|
ld.exe||cannot find -ladvapi32: No such file or directory|
ld.exe||cannot find -lshell32: No such file or directory|
ld.exe||cannot find -luser32: No such file or directory|
ld.exe||cannot find -lkernel32: No such file or directory|
ld.exe||cannot find -lmingw32: No such file or directory|
ld.exe||cannot find -lgcc: No such file or directory|
ld.exe||cannot find -lgcc_eh: No such file or directory|
ld.exe||cannot find -lmoldname: No such file or directory|
ld.exe||cannot find -lmingwex: No such file or directory|
ld.exe||cannot find -lmsvcrt: No such file or directory|
ld.exe||cannot find -lkernel32: No such file or directory|
||error: ld returned 1 exit status|
||=== Build failed: 23 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

« Last Edit: July 30, 2023, 02:23:04 pm by garwin »

Offline garwin

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Codeblocks and gcc - missing some settings in codeblocks
« Reply #1 on: July 30, 2023, 03:26:44 pm »
Hmm, I completely deleted everything, and do the same thing again and this time it does work.

I do not know why it does not work for the first time but at least for me, it is working as intended.
Just guess that some settings were not saved if I changed more things before "ok". (eg. if I change the debugger setting in the toolchain and I do not click "ok" for each change of compiler, it does not save).
« Last Edit: July 30, 2023, 03:28:53 pm by garwin »