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 -> Problem with Pro*C/C++?

Problem with Pro*C/C++?

From: Adolfo Sánchez <adfsanchez_at_gmv.es>
Date: Mon, 03 Jan 2000 17:25:08 +0100
Message-ID: <3870CD64.25F6E68E@gmv.es>


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

PCC-S-02322, found undefined identifier Semantic error at line 42, column 18, file resourcebp_b.pc:

        EXEC SQL ALLOCATE :r;

.................1

PCC-S-02319, expression type does not match usage Semantic error at line 42, column 9, file resourcebp_b.pc:

        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?
--



Adolfo Sánchez Domínguez GMV, S.A. Grupo de Mecánica de Vuelo mailto:adfsanchez_at_gmv.es Sector Foresta,1. TRES CANTOS
PHO: +34 91 806 4443       E-28760 MADRID (SPAIN)
FAX: +34 91 806 4641       http://www.gmv.es



Received on Mon Jan 03 2000 - 10:25:08 CST

Original text of this message

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