Dear Sir,

 

I wonder why the 'cpc'  pre-compiler  has replaced all VARCHAR data types
with VARCHS which is not accepted by the Microsoft C Compiler.

 

I checked the documentation of the pre-compiler , but the data type VARCHS
is mentioned at all.

 

I need to compile the generated C code using Microsoft C compiler , but it
gives the below error :

 

Code : VARCHS(10)B_Cdr_Scenario;

 

Error : c:\srcnsk\readgss\medlib.c(4436) : error C2143: syntax error :
missing ';' before '<class-head>'

 

Compilation parameters : cpc  -E cansi -S oracle -H nocheck -c -o -u
dbadmin,rami123 -d maxdb1 medlib

 

Orignal code ( C with embedded Oracle SQL statement ) : VARCHAR
B_Cdr_Scenario[10];

 

 

How can I resolve this error ?

 

Appreciate your quick response.

 

Thanks

Rami

Reply via email to