Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Porting Unix Pro C to NT

Re: Porting Unix Pro C to NT

From: Richard Murphy <rmurphy_at_lbpc.com>
Date: Tue, 16 Feb 1999 16:20:23 -0600
Message-ID: <36C9EF26.EB20C579@lbpc.com>


The problem has to do with the options you set when compiling the ProC module. Try setting the parse to FULL and SQL check to SEMANTICS and ORACA to YES. I forgot which one of the options is specifically responsible, but i have had the same problems in the past.

Eric Janik wrote:

> 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 - 16:20:23 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US