Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Libraries

Status
Not open for further replies.

ZiqXx

Programmer
Aug 16, 2004
5
IS
Hello,

A friend told me I needed these libraries to compile a project I have:
-lsocket
-lnsl
-lrt
-ldl
-laio
These are only Solaris libraries to my best knowledge...

So far I have found out that -lsocket can be replaced with -lc on AIX 5.0 and -lrt with -lrtl I think?

But -laio I can't find what is the equivallent on AIX ??

are the -ldl and -lnsl the same ???

Thanks in advance,
ZiqXx
 
well, I can witness that the following files exist on AIX 5.2 ML03 :

In /usr/lib :
libnsl.a
libnsl_r.a
librt.a
librtla.
librts.a
libdl.a

I don't see any, libsocket* or libaio*, but there is a socket.exp and an and aio.exp file (they are export files, ie they list symbols exported from a library, can not tell which one).

If it can help, at :

in the appropriate AIX documentation, you can try to look for function names and see what library provides them.

regards
 
Thank you so much for the reply,

BTW is there a file called libc.a in this directory ???
 

yes.

for informations, there are some cases where to obtain a library you need to install some AIX package not installed by default (for example, the Perfstat API which gives access to functions to monitor memory, CPU consumption, ..., is not installed by default.

Another example I have in mind is the Mathematical library (libm from the fileset bos.adt.libm). When you install the IBM Visual Age compiler, you will need it otherwise the installation will not work, it's a pre-requisite.

regards,
 
Okey I see, thanks alot again for your help.

One more thing since we are on the topic of libraries, do you know of any libraries that are required but not installed by default to access Oracle database through C++ ??
 
oups, i'm not very good on Oracle matters ... as far as I know the laio and lm are the most important, otherwise I don't see.


re-re-regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top