Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Problem with Pro*C/C++?
Hello,
I'm trying to compile a .pc file with C++ classes and types generated with OTT using the following makefile:
$(OTT) intype=tipo.typ hfile=tipo.h outtype=tipo_out.typ code=c
user=euclid/euclid
This works ok.
$(PROC) $(PROCPPFLAGS) intype=tipo_out.typ iname=program $(INCLUDE2)
With this line I get the following problem:
If I write program.pc in C++ and use PROCPPFLAGS then the result is
this:
proc code=cpp
sys_include='(/usr/local/SUNWspro/SC5.0/include/CC,/usr/include)'
intype=tipo_out.typ iname=program include=.
include=/oracle/app/oracle/product/8.0.3/precomp/public include=/oracle/app/oracle/product/8.0.3/rdbms/public include=/oracle/app/oracle/product/8.0.3/rdbms/demo include=/oracle/app/oracle/product/8.0.3/plsql/public include=/oracle/app/oracle/product/8.0.3/network/public
Pro*C/C++: Release 8.0.3.0.0 - Production on Mon Jan 3 14:42:3 2000
(c) Copyright 1997 Oracle Corporation. All rights reserved.
System default option values taken from: /oracle/app/oracle/product/8.0.3/precomp/admin/pcscfg.cfg
Semantic error at line 42, column 28, file resourcebp_b.pc:
EXEC SQL ALLOCATE :r;
...........................1
EXEC SQL ALLOCATE :r;
.................1
EXEC SQL ALLOCATE :r;
........1
PCC-S-02336, host variable expression has invalid type
*** Error code 1
when I omit the PROCPPFLAGS and use C++ (for example // for comments) then generates an error due to C++ code is not considered by ProC unless you specify code=cpp.
when I omit the PROCPPFLAGS and use pure C in my code everything works fine.
What can I do for using C++ code with OTT types and everything working
fine?
--
PHO: +34 91 806 4443 E-28760 MADRID (SPAIN) FAX: +34 91 806 4641 http://www.gmv.esReceived on Mon Jan 03 2000 - 10:25:08 CST
![]() |
![]() |