[CentOS] OT: eclipse on x86_64 compile for x86?

John R Pierce pierce at hogranch.com
Fri Aug 14 21:21:34 UTC 2009

Coert Waagmeester wrote:
> Hello all,
> Have installed eclipse 3.5 x86_64 from the eclipse site, with CDT and QT
> integration.
> I am just starting to learn C++ but I would like to know how to set up
> the ability to compile for 32 bit as well?

specify -m32 as a gcc (or g++ or c++) compile time option, and use the 
libraries in */lib rather than */lib/64

this has nothing to do with eclipse, eclipse is a Java IDE, this is 
plain gcc/makefile stuff.    It also has nothing to do with CentOS.


More information about the CentOS mailing list