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

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

From: Alex Vinokur <alexander.vinokur_at_telrad.co.il>
Date: Thu, 07 Oct 1999 11:26:36 GMT
Message-ID: <7ti017$gie$1@nnrp1.deja.com>


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?

        Thanks in advance,
        Alex

//#########################################################

//------------------- Pro*C/C++ code : BEGIN --------------

[--- omitted ---]

char* username = "aaa";
char* password = "bbb";

[--- omitted ---]

    EXEC SQL CONNECT :username IDENTIFIED BY :password; // Line#157

[--- omitted ---]

//------------------- Pro*C/C++ code : END ----------------

//#########################################################

//------------------- Compilation Results : BEGIN ---------
===========================================================
// Compilation as C-program :
make -f demo_proc.mk EXE=my_sample OBJS=my_sample.o build // No problems

// Compilation as C++-program :
make -f demo_proc.mk EXE=my_sample OBJS=my_sample.o cppbuild

Semantic error at line 157, column 23, file my_sample.pc:

    EXEC SQL CONNECT :username IDENTIFIED BY :password;

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

PCC-S-02322, found undefined identifier Semantic error at line 157, column 47, file my_sample.pc:

    EXEC SQL CONNECT :username IDENTIFIED BY :password;

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




//------------------- Compilation Results : END -----------
//#########################################################
//------------------- Database, PreCompiler, System ------
=== Oracle 8.0.5

=== Pro*C/C++ : Release 8.0.5.0.0
=== SunOS 5.6
//---------------------------------------------------------

//#########################################################



Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Oct 07 1999 - 06:26:36 CDT

Original text of this message

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