Author Topic: Can I build 32-bit programs under x86_64 OS with codeblocks?  (Read 4901 times)

skyplus

  • Guest
Can I build 32-bit programs under x86_64 OS with codeblocks?
« on: December 18, 2007, 05:36:56 am »
I have little idea about things like i386, x86_64 etc...
Until yesterday, when i was trying to run my program in another computer with ubuntu os, I recognized my centos was a x86_64 distribution. But it is already too late for me to reinstall the system.
Can codeblocks offer some convenience for my situation?
or show me some links talk about building 32bit programs under 64bit system. Really appreciate! Thanks!
I am using codeblocks & wxWidgets libraries for development recently.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Can I build 32-bit programs under x86_64 OS with codeblocks?
« Reply #1 on: December 18, 2007, 09:04:22 am »
or show me some links talk about building 32bit programs under 64bit system.
Search with google for gcc and "-m32" compiler/linker switch.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ