In order to configure some software, I need gcc-3.4, but gcc's version by using apt-get from source is 4.6, so i should install it manually.
I add source which include gcc-3.4 to the source list and then use
sudo apt-get install gcc-3.4
sudo apt-get install g++-3.4
sudo ln -sf gcc-3.4 gcc
sudo ln -sf g++-3.4 g++
then
gcc -o helloworld helloworld.c
get the following error:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
Then I uninstall gcc-3.4 g++-3.4
and manually download
gcc-3.4-base_3.4.6-6ubuntu3_amd64.deb
gcc-3.4_3.4.6-6ubuntu3_amd64.deb
cpp-3.4_3.4.6-6ubuntu3_amd64.deb
g++-3.4_3.4.6-6ubuntu3_amd64.deb
libstdc++6-dev-3.4.6-6ubuntu3_amd64.deb
and usd dpkg -i to install them,but when i complie helloworld.c, I get the same error, how can i fix it?
I really appreciate the help!
I add source which include gcc-3.4 to the source list and then use
sudo apt-get install gcc-3.4
sudo apt-get install g++-3.4
sudo ln -sf gcc-3.4 gcc
sudo ln -sf g++-3.4 g++
then
gcc -o helloworld helloworld.c
get the following error:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
Then I uninstall gcc-3.4 g++-3.4
and manually download
gcc-3.4-base_3.4.6-6ubuntu3_amd64.deb
gcc-3.4_3.4.6-6ubuntu3_amd64.deb
cpp-3.4_3.4.6-6ubuntu3_amd64.deb
g++-3.4_3.4.6-6ubuntu3_amd64.deb
libstdc++6-dev-3.4.6-6ubuntu3_amd64.deb
and usd dpkg -i to install them,but when i complie helloworld.c, I get the same error, how can i fix it?
I really appreciate the help!
Comment