HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using aCC shared libs with cc
Operating System - HP-UX
1830168
Members
6191
Online
109999
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
06-05-2003 07:09 AM
06-05-2003 07:09 AM
I compiled a simple "hello world" program in C++ using aCC (options -b,+z). This is a simple shared library that contains a function called hw which displays the string "Hello World."
If I build a test program using aCC that calls hw and uses my "Hello World" shared library, everything works great.
If I build a test program that using cc INSTEAD of aCC, I receive the following error message when I try to run it:
/usr/lib/dld.sl: unresolved symbol __shlinit (code) from ./libhello
Note: I've used an extern "c" on the function hw to prevent name mangling.
Is it possible to use an aCC shared library from a cc compiled program? If so, what am I doing wrong?
Thanks,
Andy
If I build a test program using aCC that calls hw and uses my "Hello World" shared library, everything works great.
If I build a test program that using cc INSTEAD of aCC, I receive the following error message when I try to run it:
/usr/lib/dld.sl: unresolved symbol __shlinit (code) from ./libhello
Note: I've used an extern "c" on the function hw to prevent name mangling.
Is it possible to use an aCC shared library from a cc compiled program? If so, what am I doing wrong?
Thanks,
Andy
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 08:10 AM
06-05-2003 08:10 AM
Re: Using aCC shared libs with cc
hi Andy,
Check this link. This may help to see your problem.
http://devrsrc1.external.hp.com/STK/impacts/i121.html
HTH,
Umapathy
Check this link. This may help to see your problem.
http://devrsrc1.external.hp.com/STK/impacts/i121.html
HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 09:59 AM
06-05-2003 09:59 AM
Solution
An aCC built shared library needs to be linked with the c++
runtime libraries if it will be used by a program linked without
aCC. The details are described in this document (for the
A.03.37 release of aCC)
http://docs.hp.com/hpux/onlinedocs/2213/distributing.htm#distributing
You can run "aCC +help" to view the documentation for the release that you have installed.
runtime libraries if it will be used by a program linked without
aCC. The details are described in this document (for the
A.03.37 release of aCC)
http://docs.hp.com/hpux/onlinedocs/2213/distributing.htm#distributing
You can run "aCC +help" to view the documentation for the release that you have installed.
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP