Home » Developer & Programmer » Precompilers, OCI & OCCI » PCC-S-02014 error while compiling with in Sun Solaris (Pro*C/C++: Release 10.2.0.3.0, SunOS 5.10 Generic_137137-09 sun4v sparc SUNW,T5240)
PCC-S-02014 error while compiling with in Sun Solaris [message #376633] Thu, 18 December 2008 02:20 Go to next message
vinu_raj
Messages: 26
Registered: April 2005
Location: Bangalore INDIA
Junior Member
We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.

PRECOMP set: /u01/app/oracle/product/10.2.0/bin/proc dbms=native code=cpp mode=ansi include=/u01/app/oracle/product/10.2.0/precomp
ireclen=255 oreclen=255
define=__sparc define=__SUNPRO_C include=/usr/include include=. include=/u01/app/SUNWspro/prod/include/CC/stlport4 include=/u01/app/oracle/product/10.2.0/rdbms/public/ include=/u01/app/oracle/product/10.2.0/network/public/ include=/u01/app/oracle/product/10.2.0/rdbms/demo/ errors=yes select_error=no
sqlcheck=limited ltype=NONE
release_cursor=no hold_cursor=no



Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 18 03:09:59 2008

Copyright (c) 1982, 2005, Oracle. All rights reserved.

System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg

Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm:
Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a
lgorithm
# include _STLP_NATIVE_HEADER(algorithm)
.............................1
PCC-S-02014, Encountered the symbol "(" when expecting one of the following:

: [ ] + / . .. an identifier, a numeric constant, newline,
define, elif, else, endif, error, if, ifdef, ifndef, include,
line, pragma, undef, exec, sql, begin, end, var, type,
oracle, an immediate preprocessor command, a C token, create,
function, package, procedure, trigger, or, replace,

Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion. Please help in identifying the pre-compiler options required in such case.

regards
Vinu
Re: PCC-S-02014 error while compiling with in Sun Solaris [message #379597 is a reply to message #376633] Wed, 07 January 2009 04:45 Go to previous message
vinu_raj
Messages: 26
Registered: April 2005
Location: Bangalore INDIA
Junior Member
Seems to be a bug in proc precompiler. Need to bracket the STL includes as below

#ifndef ORA_PROC
#include <algorithm>
#include <string>
#include <list>
#include <vector>
#include <map>
.
.
.
#endif
Previous Topic: Ora-12154 when working with Pro*fortran.
Next Topic: VarArgs Macros
Goto Forum:
  


Current Time: Thu Mar 28 12:34:26 CDT 2024