Help!
I've written a C++ app that integrates with NetView
5.1 under AIX and Solaris. When I build (with gcc) and
run in on AIX 4.2.x, no problems. When I build on
Solaris 2.5.1 w/ gcc-2.95.1, I have problems (I've
also tried on 2.8 w/ gcc-2.95.3 and I get the same
errors).
Specifically, I get several warnings during the link
phase. I usually don't worry about warnings, however,
the app does not work as expected when I run it (it
does however work just fine under AIX).
Here are the details:
I compile and link with:
"c++ -DNDEBUG -D_REENTRANT -fpermissive -g -I.
I../usr/OV/include -L../usr/OV/lib
-L/usr/openwin/lib -L/usr/ucblib -R/usr/OV/lib
MyProgram.cpp -lovsnmp -lovw -lov -lnsl -ldl
-lkstat -lw -lposix4 -lpthread"
Here's an example of the warnings I get:
"ld: warning: symbol `bad_exception virtual table' has
differing sizes: (file ../usr/OV/lib/libovw.so
value=0x18;
file /usr/local/lib/gcc-lib/sparc-sun-
solaris2.5.1/2.95.1/libgcc.a(exception.o) value=0x20);
/usr/local/lib/gcc-lib/sparc-sun-
solaris2.5.1/2.95.1/libgcc.a(exception.o)
definition taken"
One other thing: I only get these errors when I use
STL containers such as map or list.
I know this question is in a gray area between being a
NetView or gcc question, but I've already posted to
the gcc newsgroup with no responses and I'm getting
desparate.
If anyone out there has an idea on how I can resolve
this, I would greatly appreciate it.
TIA,
Bob
__________________________________________________
Do You Yahoo!?
|