HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Linking Shared Library at run time
Operating System - HP-UX
1833788
Members
2599
Online
110063
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
06-20-2007 10:35 PM
06-20-2007 10:35 PM
Linking Shared Library at run time
Hi,
I am a new comer to cobol. I have a query. Can any1 plz suggest how to link shared libraries at run time? i have an executeable 'post' for which i want to link a method 'Binmup' that is defined in a shared library libmup.sl. I can link this libmup.sl during compiling post program. Bt i dnt want to compile post program everytime i make change to libmup.sl so can any1 suggest how to link libmup.sl with out compiling post program.....i am using cobol program on HP-UX
Thanx in advance
I am a new comer to cobol. I have a query. Can any1 plz suggest how to link shared libraries at run time? i have an executeable 'post' for which i want to link a method 'Binmup' that is defined in a shared library libmup.sl. I can link this libmup.sl during compiling post program. Bt i dnt want to compile post program everytime i make change to libmup.sl so can any1 suggest how to link libmup.sl with out compiling post program.....i am using cobol program on HP-UX
Thanx in advance
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2007 10:48 PM
06-20-2007 10:48 PM
Re: Linking Shared Library at run time
I'm not sure how MF COBOL does it but the Standard has a call identifier syntax where you can put the name of the program in your identifier.
You'll need to read your MF documentation to see how to find your shared lib.
>I didn't want to compile post program every time I make change to libmup.sl
For languages like C, you can just change libmup.sl and run your application. Of course if you want to call new functions in libmup.sl, you would have to edit your application, or use dynamic loading and indirect calls.
You'll need to read your MF documentation to see how to find your shared lib.
>I didn't want to compile post program every time I make change to libmup.sl
For languages like C, you can just change libmup.sl and run your application. Of course if you want to call new functions in libmup.sl, you would have to edit your application, or use dynamic loading and indirect calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2007 12:49 AM
06-23-2007 12:49 AM
Re: Linking Shared Library at run time
Ya thanx...i cracked this issue using shl_load which will explictly load the shared libraries at run time...ya i was adding new programs to libmup.sl and everytime i dont wanted to compile post program...is it necessary for me to unload the shared libary after my excution using shl_unload() or does it happens once the program is terminated?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2007 02:02 PM
06-23-2007 02:02 PM
Re: Linking Shared Library at run time
>is it necessary for me to unload the shared library after my execution using shl_unload() or does it happens once the program is terminated?
It is automatic on termination or exec.
It is automatic on termination or exec.
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