[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_at_nnrp1.deja.com>



Hi,

[Quoted] 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 ---]

[Quoted] //------------------- Pro*C/C++ code : END ----------------

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

[Quoted] //------------------- 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




[Quoted] //------------------- 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 - 13:26:36 CEST

Original text of this message