- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP UX11i : cc complier error : How can we force cc...
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
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
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
тАО10-29-2002 03:15 AM
тАО10-29-2002 03:15 AM
HP UX11i : cc complier error : How can we force cc copiler to use archive libraries as well
TIA,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2002 03:33 AM
тАО10-29-2002 03:33 AM
Re: HP UX11i : cc complier error : How can we force cc copiler to use archive libraries as well
In man ld(1) you can show :
-lx Search a library libx.a or libx.sl, where x is one or more characters. The current state of the -a option determines whether the archive (.a) or shared (.sl) version of a library is searched. Because a library is searched when its name is encountered, the placement of a -l is significant. By default, 32-bit libraries are located in /usr/lib and /usr/ccs/lib. 64-bit libraries are located /usr/lib/pa20_64. If the environment variable LPATH is present in the user's environment, it should contain a colon-separated list of directories to search. These directories are searched instead of the default directories, but -L options can still be used. If a program uses shared libraries, the dynamic loader /usr/lib/dld.sl for 32-bit or /usr/lib/pa20_64/dld.sl for 64-bit will attempt to load each library from the same directory in which it was found at link time (see the +s and +b options).
This option can be used with cc(1). Does this option hel us ?
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2002 03:38 AM
тАО10-29-2002 03:38 AM
Re: HP UX11i : cc complier error : How can we force cc copiler to use archive libraries as well
You have to link with something more.
Good luck
P.S.: If you want more precise help give more precise description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 10:27 AM
тАО10-30-2002 10:27 AM
Re: HP UX11i : cc complier error : How can we force cc copiler to use archive libraries as well
Also, if you are using the swithc to tell the compiler to do everything archived, indeed, there are some libraries that only ship .sl and not .a, which means that if you end-up with a dependency on such a library, you can at best do archive_shared rather than strictly archived.
Also, on what revision of HP-UX is the .a library's sources compiled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2002 10:46 AM
тАО10-30-2002 10:46 AM
Re: HP UX11i : cc complier error : How can we force cc copiler to use archive libraries as well
-L
Probably you are already doing this