Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> [Pro*C/C++] No problem with C; PCC-S-02322 error message with C++
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 as C-program :
//------------------- Compilation Results : BEGIN ---------
===========================================================
Semantic error at line 157, column 23, file my_sample.pc:
EXEC SQL CONNECT :username IDENTIFIED BY :password;
......................1
EXEC SQL CONNECT :username IDENTIFIED BY :password;
..............................................1
//------------------- Compilation Results : END -----------
//#########################################################
//------------------- Database, PreCompiler, System ------
=== Oracle 8.0.5
//--------------------------------------------------------- //#########################################################
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Oct 07 1999 - 06:26:36 CDT