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: Question on ProC++

Re: Question on ProC++

From: <santos_jha_at_my-dejanews.com>
Date: Thu, 20 Aug 1998 16:02:10 GMT
Message-ID: <6rhha3$hmr$1@nnrp1.dejanews.com>


In article <01bdca54$022c1930$64010a80_at_griffon>,   "ngpl" <ngpl_at_cyberway.com.sg> wrote:
> Hi,
>
> I am currently trying to compile my C++ codes using Oracle ProC++
> Precompiler.
> In my .C file (to be precompiled), I included a .H file which defines some
> constant values as shown below:
>
> XX.H : #define STR_LEN 10
> XX.C : ....
> #include "XX.H"
> ....
> void XX::F1()
> {
> EXEC SQL BEGIN DECLARE SECTION;
> char TmpStr[STR_LEN];
> EXEC SQL END DECLARE SECTION;
> ....
> }
> In this case, the precompiler has the below message:
>
> Semantic error at line 185, column 21, flle XX.C,
> char TmpStr[STR_LEN];
> ................1
> (1) PCC-S-02322, found undefined identifier
>
> If I were to define STR_LEN within the EXEC SQL DECLARE SECTION in the
> header file, does it mean that I will have to precompile the header file as
> well?

 Why don't you declare str_len inside "declare section" in xx.h and use EXEC SQL INCLUDE XX (not #include) for inclusion.I hope it will help.Santos
>
> Anyone can kindly advise on this?
> Thanks
>
>

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Thu Aug 20 1998 - 11:02:10 CDT

Original text of this message

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