GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- COBOL and aCC on HP-UX 10.20
Operating System - HP-UX
1855738
Members
7156
Online
104103
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
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
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-16-2000 05:45 AM
02-16-2000 05:45 AM
COBOL and aCC on HP-UX 10.20
I am trying to link together three pieces of COBOL
code with a large C++ application (don't ask). I
am able to create a shared library that holds all
of the COBOL modules and an executable that runs
and calls the COBOL in the shared library.
If I move any one of the COBOL modules from the
shared library to the C++ executable link, I do
not receive any link errors. However, I get an executable that "runs-away" when
the COBOL is referenced (meaning the executable starts chewing up
a lot of CPU time without any logging coming out of
the COBOL that is being referenced).
I think I have all of the name mangling taken care
of using the "extern "C"" linkage. What else could this be? Any ideas would
help!
Jason
code with a large C++ application (don't ask). I
am able to create a shared library that holds all
of the COBOL modules and an executable that runs
and calls the COBOL in the shared library.
If I move any one of the COBOL modules from the
shared library to the C++ executable link, I do
not receive any link errors. However, I get an executable that "runs-away" when
the COBOL is referenced (meaning the executable starts chewing up
a lot of CPU time without any logging coming out of
the COBOL that is being referenced).
I think I have all of the name mangling taken care
of using the "extern "C"" linkage. What else could this be? Any ideas would
help!
Jason
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2000 01:16 AM
02-17-2000 01:16 AM
Re: COBOL and aCC on HP-UX 10.20
If I am not mistaken, code that goes into a shared library should be PIC
(position indepenent code). If you have to link an object module directly with
an executable, try recompiling it so that it is not PIC.
With a C compiler on HP you use the +z or +Z option.
Hope this helps
(position indepenent code). If you have to link an object module directly with
an executable, try recompiling it so that it is not PIC.
With a C compiler on HP you use the +z or +Z option.
Hope this helps
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 2026 Hewlett Packard Enterprise Development LP