Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Porting Unix Pro C to NT
I'm involved in development effort that requires porting reams of Oracle
8.0.5 Pro C code to Windows NT. Our most significant stumbling block so far
has been an anomoly what the Pro C precompiler regards as legal syntax.
Under Unix we declare character string host variables as such:
#define MAXLEN 32 ... EXEC SQL BEGIN DECLARE SECTION; char HostCharString[MAXLEN]; EXEC SQL END DECLARE SECTION;
The NT version of the preprocessor insists that no #defined symbols appear in the declare section, so we must indicate the array size with a literal value.
EXEC SQL BEGIN DECLARE SECTION; char HostCharString[32]; EXEC SQL END DECLARE SECTION;
Has anyone dealt with a this sort of problem before, without modifying source code? Seriously, modifying source code is NOT an option. We are considering writing a preprocessor for the precompiler that de-references macros that occur in declare sections. Does such a tool already exist somewhere?
Eric Janik
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Feb 16 1999 - 14:52:01 CST
![]() |
![]() |