Author Topic: Problem compiling 32 bit application with 64 bit Code::Blocks  (Read 1036 times)

Offline gtafan

  • Almost regular
  • **
  • Posts: 147
Since all links to 32 bit windows CB versions are dead, have to use 64 bit version. Have downloaded codeblocks-25.03mingw-setup.exe and intaled it. The size of the version is more then 1,5 GB, while the previous 20.03 version was 3 times smaller. Posibly the reason for such huge size is because it 64 bit?
However I tried to compile the Hello world as 32 bit application, but got this errors:

||=== Build: Release in Hello world (compiler: GNU GCC Compiler) ===|
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_s: No such file or directory|
ld.exe||cannot find -lgcc: 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 -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_s: No such file or directory|
ld.exe||cannot find -lgcc: 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: 19 error(s), 0 warning(s) (0 minute(s), 14 second(s)) ===|

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7778
    • My Best Post
Re: Problem compiling 32 bit application with 64 bit Code::Blocks
« Reply #1 on: April 20, 2025, 07:01:08 pm »
Building 32 bit using mingw gcc 64 bit is almost never going to work!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7778
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 147
Re: Problem compiling 32 bit application with 64 bit Code::Blocks
« Reply #3 on: April 23, 2025, 04:31:45 pm »
https://sourceforge.net/projects/codeblocks/files/Binaries/25.03/Windows/32bit/
Thanks, that was really useful. 32 bit version has the same huge size as 64 bit one, but that seems to be the only disadvantage of the new CB version.