Pro*C & C-precompiler coexistence problem
Date: 1996/03/27
Message-ID: <56430025_at_hpcc01.corp.hp.com>#1/1
I would like to do this in my Pro*C
#define LENGTH 23
...
columnName varchar(LENGTH), ...
instead of the infamous
columnName varchar(23),
What I did was run the .pc file against the C precompiler cpp, but in the next step, proc barfed.
Pro*C: Release 2.0.6.0.0 - Production on Wed Mar 27 08:15:03 1996
Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.
System default option values taken from: /opt/oracle/product/7.1.6/proc/pmscfg.h
BEGIN debug.SetMode ((0), :g_int_debug_lvl);
....................1
(1) PCC-S-02306, wrong number or types of arguments in call to 'SETMODE'
BEGIN debug.SetMode ((0), :g_int_debug_lvl);
....................1
(1) PCC-S-02000, Statement ignored
Semantic error at line 932, column 9, file repricem_f.ppc:
BEGIN debug.SetMode ((0), :g_int_debug_lvl);
........1
BEGIN debug.SetMode ((1), :g_int_debug_lvl);
....................1
(1) PCC-S-02306, wrong number or types of arguments in call to 'SETMODE'
BEGIN debug.SetMode ((0));, :g_int_debug_lvl);
..................1.1
(1) PCC-S-02306, wrong number or types of arguments in call to 'SETMODE'
BEGIN debug.SetMode ((0));n 9, file repricem_f.ppc:
..................1g.SetMode ((1), :g_int_debug_lvl);
(1) PCC-S-02000, Statement ignored
...etc.... Received on Wed Mar 27 1996 - 00:00:00 CET