compile demo programs using gcc
417202Mar 18 2004 — edited Mar 19 2004Hi, I'm trying to compile and run the demo programs that are packaged with Oracle 8.1.
Ideally, I want to write C programs that use OCI to access an Oracle database.
I've successfully compiled and run oci02.c with the Borland C++ 5.5.1 compiler and the packaged bcmake.bat file.
I want to be able to compile these programs using gcc 3.3.1 but cannot seem to figure it out. (These will need to be able to run on a Linux machine and I'm using cygwin right now)
I've tried commands like:
gcc ocidb.c -I%BINC% -IC:/oracle/ora81/oci/include -LC:/oracle/ora81/oci/lib/bc/oci.lib
and this has resulted in errors:
undefined reference to '_oopen', undefined reference to '_oparse', etc...
I'm wondering if anyone has success compiling an C/C++ pgm using oci and gcc?
Thanks in advance!!