- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Installing shared library
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
Discussions
Discussions
Forums
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
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-2008 08:59 PM
тАО04-17-2008 08:59 PM
I created a .h file and .c file and
compiled it as follows
cc -c *.c
gcc -shared -o libsim.so *.o
I copied the libsim.so file to /usr/lib and the .h file to /usr/include. But problem is that I cant access library. I included the .h file in my program. Still not working.Please help!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2008 09:17 PM
тАО04-17-2008 09:17 PM
Re: Installing shared library
are there any errors generated?
revert
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2008 09:40 PM
тАО04-17-2008 09:40 PM
SolutionWhat was the error message?
Did it appear when trying to compile your program? Or was the compilation successful but the program displays an error message when you try to run it?
(The correct "-l" option is formed by taking the library name, leaving out the suffix .a, .so or .sl and replacing the "lib" in the beginning with "-l". Thus, libsim.so -> -lsim)
Note that the suffix of the shared library should be .sl instead of .so in PA-RISC-based HP-UX. With Itanium-based versions, .so is the recommended suffix but .sl may be used for backwards compatibility reasons.
Documentation:
http://docs.hp.com/en/11782/LinkerOnliinehelp0709/linkertasks.htm#SPECIFYINGLIBRARIES-LANDL
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2008 09:53 PM
тАО04-17-2008 09:53 PM
Re: Installing shared library
The -lsim option worked for me.........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2008 09:54 PM
тАО04-17-2008 09:54 PM
Re: Installing shared library
using -lsim
Thank you all.......