No problem with C; PCC-S-02322 error message with C++ 
Author Message
 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 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.***.com/
Before you buy.



Mon, 25 Mar 2002 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. No problem with C; PCC-S-02322 error message with C++

2. EXEC SQL FREE :the_cursor & PCC-S-02322

3. PCC-S-02322, found undefined identifier

4. PCC-S-02322, found undefined identifier

5. EXEC SQL FREE :the_cursor & PCC-S-02322

6. Help: source of CS-Library error 2/4/1/54 -cs_convert...The non-map replacemen

7. Btrieve error... CS:EIP

8. Problem with Delphi3 CS and Sybase 11 - HELP please

9. Delphi 2.0 CS Update & BLOB Problem

10. D2, IB-cs application problem

11. Delphi 4 CS and Oracle 8 problem.

12. problem: .NET Data Provider for Oracle and OracleHelper.cs


 
Powered by phpBB® Forum Software