This is the mail archive of the gcc@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: Path to libstdc++


On Monday 25 March 2002 14:55, Manfred Hollstein wrote:
>
> I have to admit I'm rather un-experienced on HP-UX, but you need to
> use an option/variable setting that's equivalent to
>
>    -Wl,-rpath,/opt/mehdi/gcc11/lib
>
> or
>
>    export LD_RUN_PATH=/opt/mehdi/gcc11/lib
>
This shouldnt be necessary. Think about it!
G++ finds the correct libstdc++-v3 at link-time, in essence it adds a 
-L$LIBSTDC++-PATH, it used to also put a -Wl,-rpath,$LIBSTDC++-PATH or 
equivalent, but this has disappeared recently in current-cvs. 

I am getting seriously tired of writing: 
g++ helloworld.cpp -Wl,-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1 -o 
helloworld

And the fact that I always have had to write that in linux doesnt make it any 
better.

Does anyone have an idea, where this bug have crept in?
`Allan


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