Re: Pro*C for Windows NT

From: Karg Michael <karg_at_uranus.tuwien.ac.at>
Date: 1997/04/14
Message-ID: <3351DCED.33D5_at_uranus.tuwien.ac.at>#1/1


Søren M. Olesen wrote:

> I get these errors:
>
> Pro*C/C++: Release 2.2.2.0.0 - Production on Fri Apr 11 13:57:35 1997
>
> Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.
>
> System default option values taken from:
> D:\win32app\orant\pro22\pmscfg.cfg
>
> Semantic error at line 20, column 22, file test.pc:
> EXEC SQL CONNECT :username IDENTIFIED BY :password;
> .....................1
> (1) PCC-S-02322, found undefined identifier
>
> Semantic error at line 20, column 46, file test.pc:
> EXEC SQL CONNECT :username IDENTIFIED BY :password;
> .............................................1
> (1) PCC-S-02322, found undefined identifier
>
> Can anyone tell me what version of the compiler that allows me to
> compile this code, without having to explicit defining my host variables
> ??
>
> Soren M. Olesen

You have to write EXEC SQL BEGIN DECLARE SECTION; and

                  EXEC SQL END DECLARE SECTION;
before defining the used variables OR the PARSE=full option for PRO*C. The default Parse on NT is NONE.
-- 
----------------------------------------------------------
           IMSoft - Dipl.-Ing. Michael Karg
             Graf Starhemberggasse 32/2/3
                      1040 Wien
                       Austria
----------------------------------------------------------
e-mail   : karg_at_uranus.tuwien.ac.at
           michael.karg_at_bigfoot.com
           +436641015732_at_text.mobilkom.at
Tel & Fax: ++43/1/5056190
A1       : ++43/664/1015732
WWW      : http://uranus.tuwien.ac.at/~karg/imsoft.html
           http://titania.tuwien.ac.at/~karg/imsoft.html
Received on Mon Apr 14 1997 - 00:00:00 CEST

Original text of this message