81
General (but related to Code::Blocks) / Re: Windows 11: pointer size varies depending on computer
« Last post by alfredo on October 23, 2025, 09:39:27 pm »QuoteI have to manually change the compiler from GCC to mingw64 only for the third machine?
For me this is strange. What could be the reason?
Probably (or May be), on your 3rd config, there was already a 32b compiler installed somewhere. So, when you installed C::B, it's installer has detected this compiler and configurated it as the default one, instead of the compiler distributed with C::B. This could explain why you had to change manually the configuration and why it compiled before your changes.
I am sure that there is only codeblocks 25.03 mingw 64 bit version. I triple checked

If I manually force -m 64 on the first machine, I get sorry, unimplemented: 64-bit mode not compiled in..
The -m64 is not "manually forcing" anything, you set it to compile 64 bit programs. If the compiler doesn't support it you may get an error like that. Also, if you use sizeof properly the pointer size doesn't matter, whatever it might be.
A 64 bit compiler on 64 bit OS should compile 64 bit binary by default.
Recent Posts