| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: c precompiler
Fuzhen Yang wrote:
> I'm doing my graduate project using Oracle C precompiler. At first I tried to
> compile and run the demo programs in Oracle package. After I compiled the
> program "sample1.pc", I got the "sample1.c" and "sample1.o" files. But when I
> compile the "sample1.c", I couldn't get the executable file. It showed me:
> sqlcxt, sqlglm are unresolved.
> I looked through a lot of references, but I could not find answer.
> Thank you for your any help!
>
When you compile the c programs with call function to oracle, you should
include
the oracle library in your link command. Since there are several oracle
libraries
must be included, Oracle provide a 'makefile' for easy reference, this
file is 'proc.mk'
in the './demo' directory.
So you can compile the '.pc' programs with following command:
>make -f proc.mk sample1
(suppose 'proc.mk', 'sample1.pc' are your current directory). For simplicity,
you can rename 'proc.mk' to 'Makefile', and then run command:
>make sample1
you can get executable 'sample1'.
-- Hui, Kwok Miu (Xu, Guo Miao) E-Mail: huikomix_at_dt.com.hk Assistant MIS Manager Tel : (00852)2589 3369 Cho Yang (Hong Kong) Co., Ltd. Fax : (00852)2559 3049Received on Fri Feb 21 1997 - 00:00:00 CST
![]() |
![]() |