- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- libclntsh.sl , is it a pure "C" library or C++ lib...
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
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
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
тАО02-25-2005 01:35 AM
тАО02-25-2005 01:35 AM
libclntsh.sl , is it a pure "C" library or C++ library?
I would like to know whether the following are pure C libraries or "C++" libraries?
libclntsh.sl.9.0
libjava.sl
libwtc9.sl
Thanks
Srinivasa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2005 03:30 AM
тАО02-25-2005 03:30 AM
Re: libclntsh.sl , is it a pure "C" library or C++ library?
If you are not sure, post the result of nm on each of them and we can take a look for you.
libclntsh.sl.9.0, libjava.sl
and libwtc9.sl
are C++ libraries, I believe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2005 12:10 AM
тАО02-27-2005 12:10 AM
Re: libclntsh.sl , is it a pure "C" library or C++ library?
I did "nm" on the files, but it does not show any symbols. (Probably they are stripped). But the symbols are displayed when I did "nm" on solaris libraries.
I have attached the output of nm on libclntsh.so.9.0
I also looked for files using
nm libclntsh.so.9.0 |grep FILE
This listed only .c files. Does it mean that it is a pure "c" library?
Thanks
Srinivasa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2005 10:57 PM
тАО02-28-2005 10:57 PM
Re: libclntsh.sl , is it a pure "C" library or C++ library?
I think they are Pro*C/C++ libraries (See Pro*C/C++ Precompiler Release 8.0 Programmer's Guide).
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:35 AM
тАО03-01-2005 04:35 AM
Re: libclntsh.sl , is it a pure "C" library or C++ library?
1. C++ one may be linker to C++ runtime library (libCrun);
2. startup code (init/fini) symbols on library loading/unloading are defined.
I've cheched libclntsh.sl for being C or C++, and can not tell you about it anything. There are pros and contras:
1. no mangled names -- maybe, all C++ symbols are remapped at linking, or [extern "C"] used
2. there are init/fini functions in there, but I can not find the INIT/FINI attribute for them
Thus, if you want to load it dynamically, I recommend to do:
shl_load(libraryName,BIND_DEFERRED|BIND_VERBOSE|BIND_TOGETHER,0L);