This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiling gcc-3.0.4 on Tru64 v4.0G: dies with 'Can't locate filefor:-lstdc++'
- From: "Satyajit H. Rai" <satyajit at it dot iitb dot ac dot in>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 05 Dec 2002 12:25:23 +0530
- Subject: Re: compiling gcc-3.0.4 on Tru64 v4.0G: dies with 'Can't locate filefor:-lstdc++'
- Organization: Kanwal Reikhi School Of Information Tehnology
>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