- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ld: gives Duplicate Symbol error
Operating System - HP-UX
1820399
Members
3298
Online
109624
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2006 11:58 PM
тАО10-15-2006 11:58 PM
ld: gives Duplicate Symbol error
Hi,
I recently upgraded my aCC compilers from A03.30 to A03.65 and with the new compiler I am getting a linker error of "Duplicate symbols" for some symbols. After some investiagation we could find that we get this problem because of the following explicit instantiation of a template class like
"template class vector;" in a header file.
I have removed this code and am able to build my projects, but still I get the same error with some other projects as well. Now I am confused as to what is the exact reason for this error, how my old compiler could get around some improper code constructs.
Can you please help to resolve this issue
TIA
Satya
I recently upgraded my aCC compilers from A03.30 to A03.65 and with the new compiler I am getting a linker error of "Duplicate symbols" for some symbols. After some investiagation we could find that we get this problem because of the following explicit instantiation of a template class like
"template class vector
I have removed this code and am able to build my projects, but still I get the same error with some other projects as well. Now I am confused as to what is the exact reason for this error, how my old compiler could get around some improper code constructs.
Can you please help to resolve this issue
TIA
Satya
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 12:06 AM
тАО10-16-2006 12:06 AM
Re: ld: gives Duplicate Symbol error
Hi,
"problem" was fixed in 3.31, see
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183174
and my own thread regarding this problem:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72147
Also, suggestions at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=139183
"problem" was fixed in 3.31, see
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183174
and my own thread regarding this problem:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72147
Also, suggestions at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=139183
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2006 09:35 PM
тАО11-03-2006 09:35 PM
Re: ld: gives Duplicate Symbol error
>Peter "problem" was fixed in 3.31
In some of Peter's links it mentions don't put it in a .h file. This is correct. The C++ Standard doesn't allow multiple explicit instantiations, this would violate the ODR rule, 3.2.
In some of Peter's links it mentions don't put it in a .h file. This is correct. The C++ Standard doesn't allow multiple explicit instantiations, this would violate the ODR rule, 3.2.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP