Linking Error :: Solaris 8 machine with 3rd party libraries
807575Jun 28 2004 — edited Jun 28 2004Hi,
I am working on a Solaris8 migration project.
I need an explanation for a problem I have compiling a rather old program I am working with at work. I tried compiling it,
however I get a bunch of errors of the same type:
**************************************************************
Undefined symbol first referenced in file
unsafe_ostream::do_opfx(void) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
operator new(unsigned int) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.
so
endl(ostream&) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
ws(istream&) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
exthrow /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
RWCString RWLocaleSnapshot::asString(double,int,bool)const ./objs/CalcFinancial.o
FDRMSCash::FDRMSCash(const RWDBDatabase&,const RWCString&) ./objs/CalcFinancial.o
RWDBMemTable::~RWDBMemTable() ./objs/CalcFinancial.o
exalloc /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
ostream::operator <<(double) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
ostream::operator <<(long) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
istream::operator >>(double&) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
istream::operator >>(int&) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
istream::operator >>(long&) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
istream::operator >>(char*) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
Iostream_init::Iostream_init(void) /xenv/RKCurves/sun4/5.x/1.0_A0_beta/lib/librk.so
FDRMSvsCash::FDRMSvsCash(const RWDBDatabase&,const RWCString&) ./objs/CalcFinancial.o
RWDBValue&RWDBRow::operator[](unsigned)const ./objs/CalcFinancial.o
RWDBRow&RWDBMemTable::operator[](unsigned) ./objs/CalcFinancial.o
RWDecimalPortableInit::RWDecimalPortableInit() ./objs/CalcFinancial.o
*
*
*
*
ld: fatal: Symbol referencing errors. No output written to CalcFinancial
*** Error code 1
make: Fatal error: Command failed for target `CalcFinancial'
**************************************************************
I can understand that it has to do with linking problems...Compiling is ok..
I am working on Solaris 8 machine with additional 3rd party libraries like rogue wave etc..
I have added the library path to the makefile with the -L option & also given the library name with -l option.
Any help would be appreciated...
regards
Debkumar