|
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'
|
[Prev in Thread] | Current Thread | [Next in Thread] |