- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: aCC link problem - 'Duplicate symbol'
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
04-17-2003 02:04 AM
04-17-2003 02:04 AM
aCC link problem - 'Duplicate symbol'
aCC: HP ANSI C++ B3910B A.03.30
ld: 92453-07 linker linker ld B.11.25 010129
On linking multiple objects together into an executable I get :
/usr/ccs/bin/ld: Duplicate symbol "sqlca" in files
I believe there was a problem with duplicate linking??
Any help is greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 02:56 AM
04-17-2003 02:56 AM
Re: aCC link problem - 'Duplicate symbol'
Duplicate Symbols represent definition of the variables done in more than two places.
Try to define it in one file and make that variable extern in another file. The best way is declare in a header file and include that header file in the source files.
Hope I am understanding the problem correctly.
cheers
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 03:03 AM
04-17-2003 03:03 AM
Re: aCC link problem - 'Duplicate symbol'
Haven't touched it for ages. But as far as I remember there should be an option of the type of added code. One option was to use global objects (one of them was 'sqlca' - and that you must be using). I think the other was making the objects automatic on stack. This one should be used.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 03:06 AM
04-17-2003 03:06 AM
Re: aCC link problem - 'Duplicate symbol'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 03:07 AM
04-17-2003 03:07 AM
Re: aCC link problem - 'Duplicate symbol'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 03:42 AM
04-17-2003 03:42 AM
Re: aCC link problem - 'Duplicate symbol'
The ANSIc on 10.20 handles problem with duplicate symbols differently.
Just pay more attention to my earlier advice about options in ProC.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 07:36 AM
04-23-2003 07:36 AM
Re: aCC link problem - 'Duplicate symbol'
Version of aCC 03.30 and its associated linker has a feature JAGad39135, where enums are made global.
Fix: Update to at least 03.33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 08:00 AM
04-23-2003 08:00 AM
Re: aCC link problem - 'Duplicate symbol'
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2003 11:17 PM
05-16-2003 11:17 PM
Re: aCC link problem - 'Duplicate symbol'
the symbol will resolve to the first symbol definition.
it is available with the latest linker (PHSS_28434/PHSS_28436 : B.11.36).
--
ranga