Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> link error - gnu compiler / cygwin / Pro*C / Oracle 8.1.7 / Windo

link error - gnu compiler / cygwin / Pro*C / Oracle 8.1.7 / Windo

From: Jacques Kilchoer <Jacques.Kilchoer_at_quest.com>
Date: Wed, 23 Jan 2002 17:06:33 -0800
Message-ID: <F001.003F9590.20020123165527@fatcity.com>

My apologies for this non-strictly DBA question.

Has anyone successfully used Oracle 8.1.7 Pro*C on Windows 2000 using the Gnu Compiler (gcc) that comes with Cygwin?

I've tried the following commands in Cygwin proc iname=test.pc oname=test.c include="C:\Oracle817\precomp\public"  - command successful (I see file test.c)

gcc -I/cygdrive/c/Oracle817/precomp/public -c -o test.o test.c  - command successful (I see file test.o)

gcc -o test.exe /cygdrive/c/Oracle817/oci/lib/bc/oci.lib /cygdrive/c/Oracle817/precomp/lib/msvc/orasql8.LIB test.o  - command fails:
/cygdrive/c/Oracle817/oci/lib/bc/oci.lib: file not recognized: File format not recognized collect2: ld returned 1 exit status

Related question: in my 8.1.7 Oracle Home, I see the following files oci\lib
  bc\oci.lib
  bc\ociw32.lib
  msvc\oci.lib
  msvc\ociw32.lib

precomp\lib
  msvc\oraSQL8.LIB
  msvc\oraSQX8.LIB

which of those are required to "link" when you create a Pro*C program? i.e. which would I supply as a filename to gcc -l? Received on Wed Jan 23 2002 - 19:06:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US