Hi Thomas ,

I guess I solved the problem , the problem was declaring a variable in the
middle of a function body which is accepted by some compiler and not cpc.


Thanks Thomas , 

I am still waiting for a reply for my other email regarding uuid problem
when you compile using -E cansi , any luck?

Thanks again
Rami

-----Original Message-----
From: Simenec, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 1:14 PM
To: [EMAIL PROTECTED]
Cc: maxdb@lists.mysql.com
Subject: RE: Oracle VARCHAR datatype is replaced by MAXDB VARCHS datatype

Hi Rami,

Are you sure that you have included the C precompiler header file cpc.h
into your CPC source code? This header contains defines for VARCHS and
others.

Regards,

Thomas Simenec
SAP Labs Berlin

-----Original Message-----
From: Rami AL-SAHHAR [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 8. Februar 2006 21:35
To: maxdb@lists.mysql.com
Subject: Oracle VARCHAR datatype is replaced by MAXDB VARCHS datatype
Importance: High

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


-- 
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to