Onega

a lot of VC++ posts, a few C# posts, and some miscellaneous stuff

Thursday, December 06, 2012

Use CDT Juno to build 32bit application on CentOS 6.3 64bit

Before I setup CDT, some other packages have been installed. I am not going to find out which one is unnecessary.
yum groupinstall "Development Tools"
yum install glibc.i686
yum install libstdc++.i686
yum install gtk2-devel.i686 libxml2-devel.i686 libxslt-devel.i686 ncurses-devel.i686 vte-devel.i686   
yum install bison flex gcc-c++ nkf subversion rdesktop


yum install alacarte
yum install java-1.7.0-openjdk.x86_64
tar -zxvf ~/Downloads/eclipse-cpp-juno-SR1-linux-gtk-x86_64.tar.gz
su
mkdir /opt/cdtjuno
mv ~/eclipse /opt/cdtjuno

exit
“System” -> “Preference...” -> “Main Menu”
specify -m32 as g++ compiler and linker option.
g++ -m32 -o "test32"  ./src/test32.o   
/usr/bin/ld: crt1.o: No such file: No such file or directory
solution:
yum install glibc-devel.i686
yum install libstdc++-devel.i686

Labels:

0 Comments:

Post a Comment

<< Home