Thread: Compile
View Single Post
Re: Compile
Old
  (#18)
DeitY
Member
 
Status: Offline
Posts: 14
Join Date: Mar 2012
Default Re: Compile - 20-06-2012

Quote:
Originally Posted by ghost of evilspy View Post
This means that your have 64bit linux, and 64bit gcc. If you want to compile 32bit i386 binary on your system, you need to add "-m32" to CFLAGS (and CXXFLAGS) in Makefile.

So you get "g++ -m32 -O2 -fomit-frame-pointer -march=i586 -mtune=i686 -fno-exceptions -fno-rtti ..." instead of current "g++ -O2 -fomit-frame-pointer -march=i586 -mtune=i686 -fno-exceptions -fno-rtti ...".

(You probably would have found out this by googling the error message "CPU you selected does not support x86-64 instruction set". It's always good idea to google the error messages.)
I will try this,thanks
  
Reply With Quote