Hi all,
I have some experience with the 'cpc' under Suse Linux7.3
and 'g++ version 2.95.3'.
On my Suse Box I get some "funny" happenings, when I
added an normal struct in an header which is included with
the 'EXEC SQL INCLUDE "myHeader"' command:
The struct ...(last week we added some structs, all works fine for me)
struct myStruct {
long var:
char c[10+1] /* \0 */
};
So, when I write the deklaration in the middle of the header, I get these error:
----------------------------------------------------------------------
test1.cpp.C: In function `void sqlc80(long int, long int, char *)':
/opt/sapdb/interfaces/precompiler/incl/cpc.h:221: previous non-function declarat
ion `typedef unsigned char sqlc80[80]'
test1.cpp.C:3481: conflicts with function declaration `void sqlc80(long int, lon
g int, char *)'
test1.cpp.C: In function `void sqlstart()':
test1.cpp.C:8784: initializer list being treated as compound expression
test1.cpp.C:8784: ANSI C++ forbids casting to an array type
------------------------------------------------------------------
But, when I added the struct deklaration at the bottom (!!!!) , the code will
compile ... (Puuuh, what'S happend here???)
WinXP care a pap for it ...The generated cpc code will compiled with VC++6.0 ...
With these command I try to compile under linux:
cpc -E cplus test1.cpp ;
g++ -o sapnew2pvsnew test1.cpp.o -L
/opt/sapdb/interfaces/precompiler/lib -lpcrl -lsqlca -ldl
Has anyone the same effect's or some hints about my mistake??
Thanks and greetings
Andre
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general