Re: Pro*C include files

From: Lance Kamsner <lancek_at_mincom.oz.au>
Date: Thu, 15 Dec 1994 09:39:18 GMT
Message-ID: <D0uItJ.69o_at_minbne.mincom.oz.au>


Leng Kaing (leng_at_cougar.vut.edu.au) wrote:
: Pro*C 1.4.8.2.2 and Oracle 6.0.36.??
 

: Hi :-
 

: I'm asking this for a friend... Currently, if he has the program in one
: file, everything compiles and run. But once he splits it up into
: two files, it doesn't even compile. File1 has the main() module. It
: has included file2 as such:
 

: #include <file2.pc>
 

: so the question is, can we include a .pc file in another .pc file? Or
: do we compile file2 first, and #include <file2.c> .
 

: Do we need to modify the default proc.mk? and/or do something at the
: o/s prompt. We've tried the following combinations but failed:
 

: a) cc -f proc.mk file1 file2
 

: b) cc -f proc.mk file2 file1
 

: c) cc -f proc.mk file1
 

: The error seems to point at file2. Do we need to say EXEC SQL INCLUDE
: sqlca in file2 as well even though file1 already has the
: declaration? The possibilities are endless. So I was hoping to save
: time and post my confusion instead.
 

: Please help,
: Leng.
: --
 

: Leng Kaing, Software Consultant, VUT - Footscray Campus
: Dept of Info Tech & Services, PO Box 14428 MMC, Melbourne 3000
: Tel:(03)688-4368 Fax:(03)688-4800 Email:Leng=Kaing_at_vut.edu.au

If you want to include a .PC file (i.e. one that has embedded SQL) into another PC file, then use EXEC SQL INCLUDE file2.pc; The PRO*C compiler requires embedded sql include files to be included this way. Received on Thu Dec 15 1994 - 10:39:18 CET

Original text of this message