bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link error with gcc 2.95.2 under Sparc ultra 10 with Solaris 2.6


From: Xavier Pianet
Subject: Link error with gcc 2.95.2 under Sparc ultra 10 with Solaris 2.6
Date: Mon, 12 Feb 2001 18:04:51 +0100

Hi all,
 
I have to link some code to some already existing libraries (i have no sources for them) under Solaris 2.6 (sparc ultra 10)
The libraries comes in 2 flavours, static and dynamic versions.
If i try to link only with the C API of the library all goes fine,
but if i try the same with the C++ API then I can't link anymore
to the libraries, even constructors are not visible.
The libs have been created with SunPro 5.
Is there a known problem in the way SunPro 5 and g++ mangle the function names ?
 
 
g++ -o adfin_sample.sol  sample.o -L../../../lib/sol -ladfin_bonds -lm
Undefined                       first referenced
 symbol                             in file
CBond::CBond(char const *)          sample.o
CMrvObject::GetStructure(char *, short) constsample.o
CMrvObject::GetAttrStr(short, char *, short) constsample.o
CDate::CDate(void)                  sample.o
CMrvObject::GetAttrFloat64(short, double *) constsample.o
CBond::CalcAttrYield(double)        sample.o
CBond::CalcAttrPrice(double)        sample.o
CMrvObject::IsValid(void) const     sample.o
CBond::~CBond(void)                 sample.o
CDate::CDate(unsigned short, unsigned short, unsigned short)sample.o
CBond::SetMode(char const *)        sample.o
ld: fatal: Symbol referencing errors. No output written to adfin_sample.sol
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `adfin_sample.sol'
 
Cliquez pour vous rendre sur le site Lusis
 

Xavier PIANET

address@hidden

Tél : +33(0)1 55 33 52 00
  LUSIS
27, rue des Petites Ecuries
75010 Paris
Tél : +33(0)1 55 33 52 00
Fax : +33(0)1 55 33 52 05

reply via email to

[Prev in Thread] Current Thread [Next in Thread]