HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gnu cc, PIC, +z option etc, shared libs, DLLs
Operating System - HP-UX
1825782
Members
2180
Online
109687
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
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
02-23-2004 10:05 AM
02-23-2004 10:05 AM
gnu cc, PIC, +z option etc, shared libs, DLLs
Not being a C guru, is this something I really want to get into? I am trying to build some DLLs, do I need to make PIC objects, .sl libs??
UX 11i, only gnu cc, Eloquence
TIA,
Jp
UX 11i, only gnu cc, Eloquence
TIA,
Jp
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 10:10 AM
02-23-2004 10:10 AM
Re: gnu cc, PIC, +z option etc, shared libs, DLLs
First, don't call them DLL's -- that's a term from another OS. If you do want to make shared libraries then you must compile the objects as position-independent code (PIC); this is not a requirement if you wish to create objects for static libraries.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2004 11:50 AM
02-23-2004 11:50 AM
Re: gnu cc, PIC, +z option etc, shared libs, DLLs
And GNU gcc has a wonderful self-explaining option for that: -fpic (equal to +z) or -fPIC (equal to +Z)
# gcc -c -fPIC test.c
# ld -b -o test.sl test.o
There you have your shared library (briliant extention: .sl :)
Enjoy, Have FUN! H.Merijn
# gcc -c -fPIC test.c
# ld -b -o test.sl test.o
There you have your shared library (briliant extention: .sl :)
Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP