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: Pro*C

Re: Pro*C

From: Roger Jackson <rjackson_at_wire.net.au>
Date: 2000/06/13
Message-ID: <8i5186$269i$1@news1.wire.net.au>#1/1

Kok Seong,

  1. This is dependant on the version of the O/S and version of Oracle.

    In general the standard 'C' Compiler or ANSI 'C' complier is ok.     eg. "which cc" to determine the version.

   The Installation Guide for the version of Oracle you have installed should provide the version of 'C' compiler you require.

2. Your compiling the program incorrectly, you need to precompile the program first then use the c compiler.

    Use the make file supplied by Oracle.

    eg. make -f demo_proc.mk sample1

    This should provide the sample1 executable your after.

I hope this helps.

Regards,

Roger

"Seong" <hkseong_at_hotmail.com> wrote in message news:8i440t$p7f$1_at_ctss92.sgp.hp.com...
> Hi all,
>
> I'm new in Pro*C and I tried compiling the demo program in
> $ORACLE_HOME/precomp/demo/proc. I am using cc compiler. I have some
> questions:
>
> 1. Can I use gcc compiler? I have heard that I can only use regular
> compiler like cc or c++.
> 2. I encounterd the error as below when I tried this: cc -O sample1.c -o
> sample1
> Unsatisfied symbols:
> sqlglm (code)
> sqlcxt (code)
> I get the sample1 executable file but I cannot execute the program.
> What did I do wrong?
>
> Thanks,
> Kok Seong
>
>
>
Received on Tue Jun 13 2000 - 00:00:00 CDT

Original text of this message

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