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?