Symbol referencing error

Hi im getting this error and cannot resolve it.please help...

[b]Undefinedfirst referenced

symbolin file[/b]

ios::~ios() /opt/SUNWspro/lib/rw7/librwtool.so

RWSlistCollectables::newSpecies(void) const ../../lib/libobserv.a(Observation.o)

RWCollectable::copy(void) const../../lib/libobserv.a(Observation.o)

RWCString::replace(unsigned int, unsigned int, const char*, unsigned int)adt1Svr.o

RWTOOL_INDEXERR(void)../../lib/libobserv.a(Observation.o)

ImqQue::get(ImqMsg&, ImqGmo3&) ../../lib/libMQi.a(QueMgr.o)

RWSlistCollectables::copy(void) const../../lib/libobserv.a(Observation.o)

RWHashDictionaryIterator::__vtbl ../../lib/libobserv.a(Observation.o)

[Hint: try checking whether the first non-inlined, non-pure virtual function of class RWHashDictionaryIterator is defined]

RWCString::clone(void)adt2_OrderRetrieve.o

RWIsvSlist::removeRight(RWIsvSlink*) ../../lib/libobserv.a(Observation.o)

static RWTime::buildFrom(const RWDate&, unsigned int, unsigned int, unsigned int, const RWZone&) ../../lib/liboraoci.a(adtoci.o)

long ios::setf(long,long)/opt/SUNWspro/lib/rw7/librwtool.so

ImqMsg::writeItem(ImqItm&)../../lib/libMQi.a(QueMsg.o)

RWCollection::binaryStoreSize(void) const ../../lib/libobserv.a(Observation.o)

int ios::xalloc()/opt/SUNWspro/lib/rw7/librwtool.so

RWTime::hour(const RWZone&) const ../../lib/liboraoci.a(Date.o)

int streambuf::sync()/opt/SUNWspro/lib/rw7/librwtool.so

[b]ld: fatal: Symbol referencing errors. No output written to adt1Svr[/b]

the command line used is

CC -g -compat -mt -library=rwtools7,iostream -D_LOG_FUNC_ -D_SOLARIS_ -DNO_VARG_DEFINE -g -I/usr/include -I../../MQinterface/include -I/opt/SCL/include

-I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I../../oam/include -I../../include -I../../../../KB/src/PersistObject/include

-I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/Observation/include -I../../../../KB/src/Framework/include -I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/common/include

-I/opt/SUNWspro/prod/include/CC/Cstd -I- -I/usr/include -I/opt/SCL/include -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC

-I/opt/dbms/app/oracle/product/9.2.0.1/rdbms/demo -I../../include -D_TRACE_ -c adt1Svr.C

+ CC -g -compat -mt -library=rwtools7,iostream -D_LOG_FUNC_ -D_SOLARIS_ -DNO_VARG_DEFINE -g -I/usr/include -I../../MQinterface/include -I/opt/SCL/include

-I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I../../oam/include -I../../include -I../../../../KB/src/PersistObject/include

-I../../../../KB/src/Framework/include -I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/SMFramework/include -I/opt/SUNWspro/prod/include/CC/Cstd

-I- -I/usr/include -I/opt/SCL/include -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I/opt/dbms/app/oracle/product/9.2.0.1/rdbms/demo

-I../../include -D_TRACE_ -c adt2_OrderRetrieve.C

"adt2_OrderRetrieve.C", line 74: Warning: A non-POD object of type "RWCString" passed as a variable argument to function "OAM_flog_app_err(const char*, ...)".

+ CC -g -compat -mt -library=rwtools7,iostream -D_LOG_FUNC_ -D_SOLARIS_ -DNO_VARG_DEFINE -g -I/usr/include -I../../MQinterface/include -I/opt/SCL/include

-I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I../../oam/include -I../../include -I../../../../KB/src/PersistObject/include

-I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/Observation/include -I../../../../KB/src/Framework/include -I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/common/include

-I/opt/SUNWspro/prod/include/CC/Cstd -I- -I/usr/include -I/opt/SCL/include -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC

-I/opt/dbms/app/oracle/product/9.2.0.1/rdbms/demo -I../../include -D_TRACE_ -c adt2_OrderReceived.C

+ CC -g -compat -mt -library=rwtools7,iostream -D_LOG_FUNC_ -D_SOLARIS_ -DNO_VARG_DEFINE -g -I/usr/include -I../../MQinterface/include -I/opt/SCL/include

-I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I../../oam/include -I../../include -I../../../../KB/src/PersistObject/include

-I../../../../KB/src/Framework/include -I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/SMFramework/include -I/opt/SUNWspro/prod/include/CC/Cstd

-I- -I/usr/include -I/opt/SCL/include -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I/opt/dbms/app/oracle/product/9.2.0.1/rdbms/demo

-I../../include -D_TRACE_ -c adt2_OrderStore.C

+ CC -g -compat -mt -library=rwtools7,iostream -D_LOG_FUNC_ -D_SOLARIS_ -DNO_VARG_DEFINE -g -I/usr/include -I../../MQinterface/include -I/opt/SCL/include

-I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I../../oam/include -I../../include -I../../../../KB/src/PersistObject/include

-I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/Observation/include -I../../../../KB/src/Framework/include -I/build1/smbuild/nbpp1.0cod/nbpp1.0cod/KB/src/common/include

-I/opt/SUNWspro/prod/include/CC/Cstd -I- -I/usr/include -I/opt/SCL/include -I/opt/SUNWspro/prod/include/CC/rw7 -I/opt/SUNWspro/prod/include/CC -I/opt/dbms/app/oracle/product/9.2.0.1/rdbms/demo

-I../../include -D_TRACE_ -c adt1SvrSend.C

+ CC -g -compat -mt -library=rwtools7,iostream -g -xildoff -L/lib -L/opt/dbms/app/oracle/product/9.2.0.1/lib32 -o adt1Svr adt1Svr.o adt2_OrderRetrieve.o adt2_OrderReceived.o adt2_OrderValidate.o adt2_OrderStore.o adt1SvrSend.o

../../lib/libadt2util.a ../../lib/libpoi.a ../../lib/libobserv.a ../../lib/libsm_frmwork.a ../../lib/libMQi.a ../../lib/liboraoci.a ../../lib/libkbcommon.a ../../lib/libdbCred.a ../../lib/liboam.a -laio

/opt/dbms/app/oracle/product/9.2.0.1/lib32/libsql9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libclient9.a /opt/dbms/app/oracle/product/9.2.0.1/lib/libserver9.a

/opt/dbms/app/oracle/product/9.2.0.1/lib32/libcommon9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libgeneric9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libcore9.a

/opt/dbms/app/oracle/product/9.2.0.1/lib32/libclntst9.a -lclntsh -lsocket -lnsl -lm -ldl -lrt /opt/SUNWspro/prod/lib/rw7/librwtool.a /opt/SCL/lib/lib++.a -limqb23as -limqs23as -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl

/opt/SCL/lib/lib++.a /opt/SUNWspro/prod/lib/rw7/librwtool.a -laio /opt/dbms/app/oracle/product/9.2.0.1/lib32/libsql9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libclient9.a /opt/dbms/app/oracle/product/9.2.0.1/lib/libserver9.a

/opt/dbms/app/oracle/product/9.2.0.1/lib32/libcommon9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libgeneric9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libcore9.a

/opt/dbms/app/oracle/product/9.2.0.1/lib32/libclntst9.a -lclntsh -lsocket -lnsl -lm -ldl -lrt -laio ../../lib/liboam.a

[6942 byte] By [Sashi12aa] at [2007-11-26 16:39:04]
# 1
Im using CC: Sun C++ 5.5 2003/03/12
Sashi12aa at 2007-7-8 23:05:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Do not use any of the following options on your command line. They are probably preventing the program from compiling and linking correctly:

-I/usr/include or any subdirectory

-I/opt/SUNWSpro or any subdirectory

The CC driver knows where to find system headers, and knows the correct search order. Do not try to "help" the driver, since you can force the wrong header versions to be found. In particular, I see -I/opt/SUNWspro/prod/include/CC/Cstd on command lines. That directory contains headers that cannot be used in -compat=4 mode.

In addition, do not use -library=iostream with the -compat=4 option. To use RW Tools.h++ in -compat=4 mode, use the option combination

-compat=4 -library=rwtools7

Question: Are you sure you want to use -compat (meaning -compat=4) mode? That mode is for compatibility with C++ 4.2, which last shipped in 1997. It compiles a pre-standard version of C++. Code compiled with -compat=4 cannot use many of the features of the C++ standard, and cannot be linked with C++ code that was compiled in the default standard-conforming mode.

clamage45a at 2007-7-8 23:05:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

Thanks for the reply clamage.But i added -compat to the command line only recently since i had another problem in the begining.

Error: "extern" is not allowed here.

I was not allowed to change the code but have to compile it. so i added this in the command line to get through.now this error has become a warning but mentioned as anachronism.

Sashi12aa at 2007-7-8 23:05:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

i tried what u tol.but still getting errors

CC -g -mt -compat=4 -library=rwtools7 -g -xildoff -L/lib -L/opt/dbms/app/oracle/product/9.2.0.1/lib32 -o adt1Svr adt1Svr.o adt2_OrderRetrieve.o adt2_OrderReceived.o adt2_OrderValidate.o adt2_OrderStore.o adt1SvrSend.o ../../lib/libadt2util.a ../../lib/libpoi.a ../../lib/libobserv.a ../../lib/libsm_frmwork.a ../../lib/libMQi.a ../../lib/liboraoci.a ../../lib/libkbcommon.a ../../lib/libdbCred.a ../../lib/liboam.a -laio /opt/dbms/app/oracle/product/9.2.0.1/lib32/libsql9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libclient9.a /opt/dbms/app/oracle/product/9.2.0.1/lib/libserver9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libcommon9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libgeneric9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libcore9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libclntst9.a -lclntsh -lsocket -lnsl -lm -ldl -lrt /opt/SCL/lib/lib++.a -limqb23as -limqs23as -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl /opt/SCL/lib/lib++.a -laio /opt/dbms/app/oracle/product/9.2.0.1/lib32/libsql9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libclient9.a /opt/dbms/app/oracle/product/9.2.0.1/lib/libserver9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libcommon9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libgeneric9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libcore9.a /opt/dbms/app/oracle/product/9.2.0.1/lib32/libclntst9.a -lclntsh -lsocket -lnsl -lm -ldl -lrt -laio ../../lib/liboam.a

Undefinedfirst referenced

symbolin file

ADT2msg::~ADT2msg(void) adt1SvrSend.o

ADT2msg::__vtbladt1SvrSend.o

[Hint: try checking whether the first non-inlined, non-pure virtual function of class ADT2msg is defined]

oam_app_audit(const char*, int, int, int, const char*) ../../lib/libobserv.a(AuditObOperator.o)

static ADT2QueMgr::cleanup(void)adt1Svr.o

oam_init(const char*, int, const char*, const char*, const char*, const char*)adt1Svr.o

oam_close(const char*, int)adt1Svr.o

AppMsg::AppMsg(void) adt1SvrSend.o

AppMsg::~AppMsg(void) adt1SvrSend.o

oam_opened(const char*, int)adt1Svr.o

AppMsg::setAppMsgFormat(const char*)adt1SvrSend.o

oam_envctl(char*, int, int, void*) adt1Svr.o

ADT2QueMgr::putMessage(const char*, AppMsg&) adt1SvrSend.o

oam_log_msg(const char*, int, int, int, int, const char*, ...) adt1Svr.o

operator<<(ostream&, const ADT2msg&) ../../lib/libadt2util.a(adt2Util.o)

ADT2QueMgr::~ADT2QueMgr(void)adt1SvrSend.o

ADT2QueMgr::ADT2QueMgr(void)adt1SvrSend.o

oam_trace_line(const char*, int, int, int, const char*)adt1Svr.o

oam_log_msg_generic(const char*, int, int, int, int, char*)adt1Svr.o

ld: fatal: Symbol referencing errors. No output written to adt1Svr

Sashi12aa at 2007-7-8 23:05:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5

The missing symbols are not from C++ or Solaris libraries, so the problem is most likely in your code or build procedures. Find out where the names are supposed to be defined , then try to see why they are not defined, or why they don't get linked.

For example, if you link static libraries in the wrong order, needed definitions can turn up missing.

Also try following up on the hint about the virtual function.

If that doesn't help, you may have run into a compiler bug, probably one that was later fixed. Try installing all the current patches for Studio 8. You can get them here:

http://developers.sun.com/sunstudio/downloads/patches/index.jsp

Please also refer to the C++ Users Guide that comes with the compiler for details about the -compat=4 option. Unless this code is very old (prior to 1998), it is unlikely to be usable in -compat=4 mode. That option is provided to support code intended for C++ 4.2 (1996), and not for C++ code written according to the C++ Standard.

clamage45a at 2007-7-8 23:05:55 > top of Java-index,Development Tools,Solaris and Linux Development Tools...