LOL!!!
Sorry Bob, but I have been working on a small app to convert a 32-bit
decimal word to an IP address for over a week. I blew the thing together
under Windows, but as I am working on it under Solaris, I am having all
kinds of problems with basic commands that should work (strcat, strcpy), I
keep getting a Coredump... I wonder if this only happens with gcc and not
the Sun's C for Solaris.
(sorry this is off topic)
Dean
-----Original Message-----
From: Bob Nashus [mailto:bobnashus@yahoo.com]
Sent: Wednesday, August 08, 2001 2:11 PM
To: nv-l@tkg.com
Subject: [NV-L] NetView development help
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!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
|