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 -> Pro*C chokes on size_t variable

Pro*C chokes on size_t variable

From: Patrick L. Nolan <pln_at_cosmic.stanford.edu>
Date: 13 May 2002 21:51:22 GMT
Message-ID: <abpcgq$i4a$1@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                                       *
Received on Mon May 13 2002 - 16:51:22 CDT

Original text of this message

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