public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: CYGNUS-WIN32 and Oracle OCI7.2 Library
@ 1997-08-24 23:36 Colin Peters
  0 siblings, 0 replies; 2+ messages in thread
From: Colin Peters @ 1997-08-24 23:36 UTC (permalink / raw)
  To: 'Minh Le Cong'; +Cc: 'GNU-Win32'

Minh Le Cong[SMTP:Minh.Le_Cong@spacebel.be] wrote:
>As you may know, Personal Oracle 7.2 for NT include an API called OCI (Oracle Call Interface).
>This is used to access the Oracle database.
>This is a  C API . It consists of  some .h files , a DLL (ociw32.dll) and OCIw32.lib
>
>The ociw32.lib is intended for MSVC users.
>
>So my question is that how can I link my program with OCI library  if I use CYGNUS-WIN32 ?
> how gcc and ld deal with .LIB libary files ( not .a library file)?

In your case I think it might be easier to build a .a file using dlltool and
a .def file. Some time ago Valery Fine (Valeri.Faine@cern.ch) posted a program
called dumpexts, based on pedump, that creates a .def file from a .dll. Run
this on ociw32.dll and then run dlltool on the resulting .def file to make
a libociw32.a. Then you should be able to build your programs using -lociw32
on your link line.

This all assumes that the library file contains only import records, not extra
statically linked functions. From the looks of it, it seems like a good bet in
this case.

I can send you the source file dumpexts.c if you wish.

Colin.

-- Colin Peters - Saga Univ. Dept. of Information Science
-- colin@bird.fu.is.saga-u.ac.jp - finger for PGP public key
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html
-- http://www.geocities.com/Tokyo/Towers/6162/

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* CYGNUS-WIN32 and Oracle OCI7.2 Library
@ 1997-08-21  4:09 Minh Le Cong
  0 siblings, 0 replies; 2+ messages in thread
From: Minh Le Cong @ 1997-08-21  4:09 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

Hello all,
I'm new to CYGNUS-WIN32 and I have one question involved CYGNUS-WIN32.

As you may know, Personal Oracle 7.2 for NT include an API called OCI (Oracle Call Interface).
This is used to access the Oracle database.
This is a  C API . It consists of  some .h files , a DLL (ociw32.dll) and OCIw32.lib

The ociw32.lib is intended for MSVC users.

So my question is that how can I link my program with OCI library  if I use CYGNUS-WIN32 ?
 how gcc and ld deal with .LIB libary files ( not .a library file)?

My email address is mlg@spacebel.be

Thank you very much for any help,
Regards,
mlg

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-08-24 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-24 23:36 CYGNUS-WIN32 and Oracle OCI7.2 Library Colin Peters
  -- strict thread matches above, loose matches on Subject: below --
1997-08-21  4:09 Minh Le Cong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).