- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Problem in linking a shared Library
Operating System - Linux
1753776
Members
7284
Online
108799
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
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
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
тАО11-28-2007 05:21 PM
тАО11-28-2007 05:21 PM
Hi All,
I am trying to link a shared library libzlib.sl present in /opt/hpws/
So i gave following command
aCC -o -L/opt/hpws HelloWorld HelloWorld.cpp -lzlib
It says
/usr/ccs/bin/ld cant find library zlib
I also tried copying the lib file into my current directory and giving following command
aCC -o -L. HelloWorld HelloWorld.cpp -lzlib
But same error continues.
Can any one help me out please
I have set SHLIB_PATH and also CCLIBDIR Environment variables Path to the zlib path but still error continues.
thanks and regards
Vikram
I am trying to link a shared library libzlib.sl present in /opt/hpws/
So i gave following command
aCC -o -L/opt/hpws HelloWorld HelloWorld.cpp -lzlib
It says
/usr/ccs/bin/ld cant find library zlib
I also tried copying the lib file into my current directory and giving following command
aCC -o -L. HelloWorld HelloWorld.cpp -lzlib
But same error continues.
Can any one help me out please
I have set SHLIB_PATH and also CCLIBDIR Environment variables Path to the zlib path but still error continues.
thanks and regards
Vikram
Solved! Go to Solution.
- Tags:
- shlib
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2007 03:09 PM
тАО11-29-2007 03:09 PM
Re: Problem in linking a shared Library
>I am trying to link a shared library
aCC -o -L/opt/hpws HelloWorld HelloWorld.cpp -lzlib
Your problem is that -o takes a file and eats up the -L. Use:
-L/opt/hpws -o HelloWorld ...
Or better yet as Srikrishan said, move the -L to the end.
aCC -o -L/opt/hpws HelloWorld HelloWorld.cpp -lzlib
Your problem is that -o takes a file and eats up the -L. Use:
-L/opt/hpws -o HelloWorld ...
Or better yet as Srikrishan said, move the -L to the end.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP