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/C++] No problem with C; PCC-S-02322 error message with C++

Re: [Pro*C/C++] No problem with C; PCC-S-02322 error message with C++

From: Erik Steffl <esteffl_at_pbi.net>
Date: Tue, 26 Oct 1999 11:33:58 -0700
Message-ID: <3815F416.860A0DEC@pbi.net>


  I have read somewhere in the docs that the C code is parsed, the C++ code is ignored. therefore the C variables are known to precompiler while the C++ variables are not.

        erik

Alex Vinokur wrote:
>
> In article <7ti017$gie$1_at_nnrp1.deja.com>,
> Alex Vinokur <alexander.vinokur_at_telrad.co.il> wrote:
> > Hi,
> >
> > Pro*C/C++ has no problem with my program as C-program,
> > but it does have a problem with the same program as C++-program.
> >
> > What is wrong?
>
> Pro*C/C++ requires DECLARE SECTION for host-variable in C++-programs.
> P.S. Why doesn't Pro*C/C++ require that in C-programs?
>
> >
> > Thanks in advance,
> > Alex
> >
> > //#########################################################
> > //------------------- Pro*C/C++ code : BEGIN --------------
> >
> > [--- omitted ---]
> >
> EXEC SQL BEGIN DECLARE SECTION;
> > char* username = "aaa";
> > char* password = "bbb";
> EXEC SQL END DECLARE SECTION;
> >
> > [--- omitted ---]
> >
> > EXEC SQL CONNECT :username IDENTIFIED BY :password; // Line#157
> >
> > [--- omitted ---]
> >
> > //------------------- Pro*C/C++ code : END ----------------
> >
>
> [snip]
>
> Alex
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Tue Oct 26 1999 - 13:33:58 CDT

Original text of this message

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