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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C chokes on size_t variable

Re: Pro*C chokes on size_t variable

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Tue, 14 May 2002 00:13:43 +0200
Message-ID: <ue0epkdef4uf1d@corp.supernews.com>

"Patrick L. Nolan" <pln_at_cosmic.stanford.edu> wrote in message news:abpcgq$i4a$1_at_usenet.Stanford.EDU...
> I'm trying to use the Pro*C preprocessor for the first time.
> It's not cooperating. Here's what it says:
>
> ----------------------------------------------------------
> $ proc iname=testor.pc
>
> Pro*C/C++: Release 9.0.1.0.0 - Production on Mon May 13 14:27:00 2002
>
> (c) Copyright 2001 Oracle Corporation. All rights reserved.
>
> System default option values taken from:
> /d01/app/oracle/product/9.0.1/precomp/admin/pcscfg.cfg
>
> Syntax error at line 48, column 3, file /usr/include/bits/pthreadtypes.h:
> Error at line 48, column 3 in file /usr/include/bits/pthreadtypes.h
> size_t __guardsize;
> ..1
> PCC-S-02201, Encountered the symbol "size_t" when expecting one of the
> following
> :
>
> } char, const, double, enum, float, int, long, ulong_varchar,
> OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
> OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
> OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
> struct, union, unsigned, utext, uvarchar, varchar, void,
> volatile, a typedef name,
> The symbol "enum," was substituted for "size_t" to continue.
> -----------------------------------------------------------
>
> This isn't even in the code I wrote. It's choking on a file
> in the system's /usr/include tree. If it can't handle this,
> I don't see how it will ever work. Can somebody offer some
> help?
>
> This is on Red Hat Linux 7.1.
>
> By the way, to get this far I had to edit pcscfg.cfg to make
> /usr/include/linux be one of the include file directories.
> That seems like an ominous situation to me.
>
> --
> * Patrick L. Nolan *
> * W. W. Hansen Experimental Physics Laboratory (HEPL) *
> * Stanford University *

You must have a different C compiler than Oracle supports. This has always been an issue between different C compilers.

Regards

--
Sybrand Bakker
Senior Oracle DBA

to reply remove '-verwijderdit' from my e-mail address
Received on Mon May 13 2002 - 17:13:43 CDT

Original text of this message

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