Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

symbol definitions conflict

Status
Not open for further replies.

fjml

MIS
Oct 21, 2002
2
ES
Hello,

I´m trying to link a C++ object file in a SUN Sparc system (Solaris 2.6) and I get this error message:

ild: (Performing full relink) symbol definitions conflict [...]
*** Error code 5
ild: (undefined symbol) std::vector<std::basic_string<char,std::char_traits<char> .............

I´ve got no problem when I compile de source file.

Can anyone help me?

Thank you.
 
Looks like a templates problem. The incremental linker seems to have got its knickers in a twist. The easiest way out is a clean build.
 
Be sure to include this somewhere in the driver:
Code:
using namespace std;

check all of the places that have vectors of strings...
Are you including the std:: beefore the vectors, or is that due to the declaration (if the former, remove it, probably the later so don't worry about it)...

Other then that, you'd need to post a snipit of code surrounding the line generating the error...
 
jstriech, it depends which version of compiler fjml is using. If fjml is using Forte, then there is namespace support but not if fjml is using the 4.2 compiler. The earlier versions of sun compilers do not support namespaces.
 
The problem is the compiler version.

I´m trying to link with CC 5.0 and some
libraries used by my code were compiled with version 6.

I´ve compiled and linked my code with version 6 and then I´ve no problem.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top