Library conflict when using ld

After upgrading from 6.0 to 6.1 I’m getting the follwing message
when linking my various object files:

/usr/ntox86/bin/ld: warning: libm.so.1, needed by
/x86/usr/lib/libstdc++.so, may conflict with libm.so.2
/usr/ntox86/bin/ld: warning: libc.so.1, needed by
/x86/usr/lib/libstdc++.so, may conflict with libc.so.2

What should be done? Should one of the libraries be removed, or what?
Suggestions anyone?

-Arve

… and my C++ destructors are getting called when they are not supposed
to…
guess that has something to do with the conflict…

Arve Slenes wrote:

After upgrading from 6.0 to 6.1 I’m getting the follwing message
when linking my various object files:

/usr/ntox86/bin/ld: warning: libm.so.1, needed by
/x86/usr/lib/libstdc++.so, may conflict with libm.so.2
/usr/ntox86/bin/ld: warning: libc.so.1, needed by
/x86/usr/lib/libstdc++.so, may conflict with libc.so.2

What should be done? Should one of the libraries be removed, or what?
Suggestions anyone?

-Arve

Don’t link with -lstdc++. This is the old C++ GNU lib. Link with -lang-c++.
This is a universal switch that gives you the correct library, in 6.1. case,
the Dinkum C++ libraries, libcpp.so
Markus


“Arve Slenes” <slenesa@oslo.geco-prakla.slb.com> wrote in message
news:3B5E7E5E.46F64AC7@oslo.geco-prakla.slb.com

After upgrading from 6.0 to 6.1 I’m getting the follwing message
when linking my various object files:

/usr/ntox86/bin/ld: warning: libm.so.1, needed by
/x86/usr/lib/libstdc++.so, may conflict with libm.so.2
/usr/ntox86/bin/ld: warning: libc.so.1, needed by
/x86/usr/lib/libstdc++.so, may conflict with libc.so.2

What should be done? Should one of the libraries be removed, or what?
Suggestions anyone?

-Arve