Re: Pro*C include files
Date: 13 Dec 1994 14:13:08 GMT
Message-ID: <3cka5k$2rq_at_redwood.cs.scarolina.edu>
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:
>so the question is, can we include a .pc file in another .pc file? Or
>do we compile file2 first, and #include <file2.c> .
Pro*C does't see pcc directives (#directives) like '#include'. You probably want to compile file2.o and file1.o (cc -c) then link the two together with the oracle lib (ln file2.o file1.o sqllib)
Just remember that Pro*C has a hard time seeing declarations in the other source file as well.
L. Scott Johnson Received on Tue Dec 13 1994 - 15:13:08 CET