Re: Pro*C include files

From: Scott Urman <surman_at_wwsun10.us.oracle.com>
Date: 13 Dec 1994 22:36:26 GMT
Message-ID: <3cl7la$avp_at_dcsun4.us.oracle.com>


In article <3cjahr$lhj_at_cougar.vut.edu.au>, leng_at_cougar.vut.edu.au (Leng Kaing) writes:
|> 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

Use EXEC SQL INCLUDE to include .pc files. The precompiler doesn't process #include statements. Look at the generic precompiler manual and the Pro*C supplement. Received on Tue Dec 13 1994 - 23:36:26 CET

Original text of this message