compiling gcc-3.0.4 on Tru64 v4.0G: dies with 'Can't locate filefor: -lstdc++'

Satyajit H. Rai satyajit@it.iitb.ac.in
Wed Dec 4 22:58:00 GMT 2002


 >The build of gcc-3.0.4 goes fine until it gets to the part that
 >compiles libstc++-v3.  For some reason, the final link uses g++
 >instead of gcc, so '-lstdc++' gets added as flag.  Since libstdc++
 >does not exist yet, the build fails with 'Can't locate file for: 
 >-lstdc++'
 >How do I fix this?

<snip>

	You are probably trying to build gcc from Compaq's cc and do not have 
previous version of gcc installed (I had the same problem ;-)). As a 
workaround, I tried configure with "--disable-shared" option and the 
build went perfectly fine. After you have made a build with static 
libraries, you could try the build with dynamic library.

Hope that helps.

-- 
Satyajit Rai
Senior Graduate Student





More information about the Gcc-help mailing list