Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

compile demo programs using gcc

417202Mar 18 2004 — edited Mar 19 2004
Hi, 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!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2004
Added on Mar 18 2004
1 comment
552 views