[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I get libtool to use g++?



Brian Nelson <pyro@debian.org> writes:

>> sed -e 's/CC="gcc"/CC="g++"/g' libtool > lt.tmp && mv -f lt.tmp libtool
>>
>> to force it.  What's the right way to get libstdc++ linked in to shared
>> libraries of C++ code?  The package uses autoconf, automake, libtool, etc.
>
> Use -lstdc++ [...]?

No, the right way is to always link C++ libraries with g++, not gcc.
Doing otherwise will probably break on some release platforms
(e.g. hppa).

-- 
James



Reply to: