This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



>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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]