Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Pro*C >>unable to open include files<<

Re: Pro*C >>unable to open include files<<

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Sat, 27 Mar 1999 01:00:24 GMT
Message-ID: <36fc2cd9.1332676@192.86.155.100>


A copy of this was sent to jkaliani_at_itds.com (if that email address didn't require changing) On Fri, 26 Mar 1999 22:00:10 GMT, you wrote:

>Hi everyone,
>
>Does someone know how to resolve "unable to open include file" problem with
>Pro*C preprocessor. Attached is listing of command line compilation & linking.
>

For some reason, proc will turn

#include <x>

into

#include <x.h>

it assumes a .h on an include when included in <>. If you code:

#include "x"

it will not do that. Likewise, if you created symbolic links x.h -> x, it will work as well.

Short of that, you can use "parse=none" on the proc command line. If you do that, you will have to use EXEC SQL BEGIN DECLARE SECTION/EXEC SQL END DECLARE SECTION and forgo the use of some other constructs.

There is an open bug 753504 on this -- you can call support, tell them you hit that and would like to be alerted to any patches for it....

>>>>>>
>
>proc code=cpp cpp_suffix=pcc
>sys_include='(/opt/aCC/include,/opt/aCC/include/iostream,/opt/aCC/include/rw,
>/us r/include)' sqlcheck=full userid=jkaliani/jkaliani dbms=v8
>oname=idfList.cc iname=idfList.pcc
>
>Pro*C/C++: Release 8.0.5.0.0 - Production on Fri Mar 26 15:53:1 1999
>
>(c) Copyright 1998 Oracle Corporation. All rights reserved.
>
>System default option values taken from:
>/opt/oracle/product/8.0.5/precomp/admin/pcscfg.cfg
>
>Error at line 14, column 10 in file /opt/aCC/include/stddef.h #include
><cstddef> .........1 PCC-S-02015, unable to open include file Error at line
>357, column 15 in file /opt/aCC/include/rw/cstring.h # include <utility>
>..............1 PCC-S-02015, unable to open include file Error at line 14,
>column 10 in file /opt/aCC/include/stdlib.h #include <cerrno> // indirectly
>included .........1 PCC-S-02015, unable to open include file Error at line
>15, column 10 in file /opt/aCC/include/stdlib.h #include <cstdlib> .........1
>PCC-S-02015, unable to open include file /opt/aCC/bin/aCC -c +DAportable -I.
>-I/opt/oracle/product/8.0.5/precomp/public idfList.cc /opt/aCC/bin/aCC -c
>+DAportable -I. -I/opt/oracle/product/8.0.5/precomp/public htmlProcs.cpp
>/opt/aCC/bin/aCC -o idfList.cgi idfList.o Db.o htmlProcs.o
>-L/opt/oracle/product/8.0.5/lib `if [ -f
>/opt/oracle/product/8.0.5/lib/libxa.a ]; then echo -lxa; else echo ""; fi;`
>-lsql -lnetwork -lncr -lnetwork -lclient -lcommon -lgeneric -lnetwork -lncr
>-lnetwork -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -l:libclntsh.sl -lmm
>-lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 `cat
>/opt/oracle/product/8.0.5/lib/sysliblist` -lm -l:libcma.sl
>
><<<<<
>
>thanks,
>jawahar.
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
 

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Service Industries
Reston, VA USA

--
http://govt.us.oracle.com/ -- downloadable utilities  



Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Fri Mar 26 1999 - 19:00:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US