On Wed, Jun 03, 2015 at 10:55:35PM +0100, Andrew Ross wrote:
> 
> Sorry for the delay in replying, but I've been away and busy with work.
> 
> I agree with your conclusion that it is probably not worth it. If you did
> want to implement this for g++ though, then the point about the multiple
> directories is that you should link against the correct version of stdc++
> for your gcc version. To find this the best way is probably to use the
> -print-file-name option. 
> 
> On my Ubuntu system 
> $ g++ -print-file-name=libstdc++.so
> /usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.so
> 
> $ g++-4.4 -print-file-name=libstdc++.so
> /usr/lib/gcc/x86_64-linux-gnu/4.4.7/libstdc++.so
> 
> So this will always pick up the right version. This should work across
> multiple Linux distributions, and also, I hope, on cygwin etc.

I should finish reading my emails before replying. It seems you have found
a more elegant general solution anyway, so ignore this!

Andrew

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to