How to create .so library for C function

From: Tran, Duc-Chi <tranduc_at_statcan.ca>
Date: Tue, 18 May 1999 16:09:00 -0400

Duc-Chi Tran (613) 951-3626 tranduc_at_statcan.ca
Chief, Systems Support Section / Chef, section du soutien des systèmes
Industry Measures & Analysis Division / Division des mesures et de
l'analyse des industries
Statistics Canada / Statistique Canada
Visit our Web Site / Visitez notre site http://www.statcan.ca
For our employees, visit / Pour nos employés, visitez
http://www.imad.statcan.ca

 -----Original Message-----
From: Tran, Duc-Chi
Sent: Tuesday, May 18, 1999 12:36 PM
To: 'Digital Unix ListServ'
Subject: RE: How to create .so library for C functions

Many thanks to David J. DeWolfe and Burch Seymour, who promptly helped us
with an example and pointed us to the information in Chapter 4 of the
Digital Unix Programmer's Guide.

Duc-Chi Tran (613) 951-3626 tranduc_at_statcan.ca
Chief, Systems Support Section / Chef, section du soutien des systèmes
Industry Measures & Analysis Division / Division des mesures et de
l'analyse des industries
Statistics Canada / Statistique Canada
Visit our Web Site / Visitez notre site http://www.statcan.ca
For our employees, visit / Pour nos employés, visitez
http://www.imad.statcan.ca

 -----Original Message-----
From: Tran, Duc-Chi
Sent: Monday, May 17, 1999 11:16 AM
To: 'Digital Unix ListServ'
Subject: How to create .so library for C functions

Hello Guru,

We are using Digital Alpha Unix 4.0d. We need to create a C function to
be used by an Oracle procedure. I am told by our programmers that the
Oracle procedure can call only C functions in a shared library .so
(example libspecial.so). Please help us with:

 - the cc or ld command to create a .so library.
 - anything special that we have to do with the C program.

Is a .so library in Unix equivalent to a .DLL in MS Windows? If not, what
are the differences?

Also, how can we create an .DLL in MS WinNT using a C compiler on Windows
such as Borland C++?

Many thanks.

Duc-Chi Tran (613) 951-3626 tranduc_at_statcan.ca
Chief, Systems Support Section / Chef, section du soutien des systèmes
Industry Measures & Analysis Division / Division des mesures et de
l'analyse des industries
Statistics Canada / Statistique Canada
Visit our Web Site / Visitez notre site http://www.statcan.ca
For our employees, visit / Pour nos employés, visitez
http://www.imad.statcan.ca
Received on Tue May 18 1999 - 19:59:07 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT