News:

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

Main Menu

Problem compiling 32 bit application with 64 bit Code::Blocks

Started by gtafan, April 20, 2025, 05:23:27 PM

Previous topic - Next topic

gtafan

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)) ===|

stahta01

Building 32 bit using mingw gcc 64 bit is almost never going to work!

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]

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]

gtafan

Quote from: stahta01 on April 20, 2025, 07:24:33 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.