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

Home -> Community -> Usenet -> c.d.o.server -> Re: Can I use gnu C compiler to write OCI Program?

Re: Can I use gnu C compiler to write OCI Program?

From: Lee Minyoung <lmy_at_kcri.co.kr>
Date: Thu, 21 Jan 1999 09:59:33 GMT
Message-ID: <36a6f88c.37195003@news.nuri.net>


On 20 Jan 1999 17:42:37 -0500, tlam_at_cs.umd.edu (Terry Heung-Man Lam) wrote:

>Hi,
>
>I have a question about Oracle OCI/Pro*C:
>
>The documentation says that in order to use the C precompiler (that =
allows
>PL/SQL blocks in your C code), you need "SPARCworks C Compiler 4.2 or =
better".
>Do you know whether that really means that no gnu (gcc) version will =
work,
>or might one work?
>
>Also, the Administrator's Guide claims that the compiler required to use=
 the
>OCI is specified in the Installation Guide, but the part about the Pro*C=
 

>precompiler was all I could find. Do you know whether gnu or other =
versions
>will work with the OCI?
>
>Finally, related to all of this, many of the .cfg files referenced in =
the
>documentation aren't there. The makefiles are, though. Do you know why=
 

>that would be?
>
>It would definitely be better not to have to *purchase* a compiler for =
my
>machine which doesn't have any compiler right now. Hence, I'm hoping to=
 use
>gnu versions which is free. Any thoughts would be really helpful.
>
>Thanks,
>Terry Lam

Yes, it's possible to use gcc instead of cc. It works with OCI7.
I tested it with gcc 2.7 on Solaris 2.5.1

But, about OCI8, I'm not sure.

Lee, Minyoung Received on Thu Jan 21 1999 - 03:59:33 CST

Original text of this message

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