| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: pro*C and aCC (ANSI C++)
Venkatesha Prasad wrote:
>
> I have a pro*C program written for ANSI C++. Some of the ANSI standard
> header files include files without any extension. For example, the
> file stddef.h includes 'cstddef'. Even though the the directory which
> has cstddef is included in sys_include flag for pro*C. Also, pro*C
> fail to recognize C++ type of comments on those lines which has pre
> processor directive. I have set the flag code=cpp. I have given the
> compiler option and the errors it gives below. Can some one tell me
> What' wrong?
>
> Thanks,
> Venkatesh Prasad
>
> proc code=cpp mode=ansi sys_include=/opt/aCC/include/
> \
> sys_include=/opt/aCC/include/iostream \
> sys_include=/opt/aCC/include/SC sys_include=/usr/include/ \
> sqlcheck=full userid=cba/cba dbms=v6_char \
> BATMain.pc iname=BATMain.pc oname=BATMain.cpp
>
> Preprocessor error at line 14, column 10, file
> /opt/aCC/include/stddef.h:
> #include <cstddef>
> .........1
> (1) PCC-S-02015, unable to open include file
>
> Preprocessor error at line 14, column 10, file /opt/aCC/include/stdio.h:
> #include <cstdio>
> .........1
> (1) PCC-S-02015, unable to open include file
>
> Syntax error at line 14, column 20, file /opt/aCC/include/stdlib.h:
> #include <cerrno> // indirectly included
> ...................1
> (1) PCC-S-02014, Encountered the symbol "/" when expecting one of the
> following:
>
> newline,
> The symbol "newline," was substituted for "/" to continue.
There are few problems with newer pre-compilers (version 2.x) that I have also found. Some of the C/C++ costructs they do not quite understand. In these cases I seperate the problem statements into another file, as plain C/C++ code, compile it direct and link with the main code which will be pre-compiled and compiled. Received on Tue Aug 19 1997 - 00:00:00 CDT
![]() |
![]() |