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

Offline skyplus

  • Multiple posting newcomer
  • *
  • Posts: 11
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: 9508
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: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ