The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compile errors because of the ras.h file morrisey AIX 2 04-11-2008 09:54 AM
rename a file to include the ip address MrMac UNIX for Dummies Questions & Answers 10 11-12-2006 09:48 AM
Compile and dump errors to a text file starstarting UNIX for Dummies Questions & Answers 6 10-23-2006 05:45 AM
How to include PDF file with spaces lawadm1 Shell Programming and Scripting 1 05-19-2006 07:03 PM
compile xev on HPUX 10.20 - errors lan High Level Programming 1 05-16-2002 09:22 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008
Registered User
 

Join Date: Apr 2008
Posts: 45
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Not able to compile Pro*c file due - give errors and points to /usr/include/.. file

I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( [

---------------------------------------------------

ps2@rmcmz src]$ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc

Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008

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

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

Syntax error at line 55, column 11, file /usr/include/c++/3.3.4/clocale:
Error at line 55, column 11 in file /usr/include/c++/3.3.4/clocale
namespace std
..........1
PCC-S-02201, Encountered the symbol "std" when expecting one of the following:

; , = ( [

Error at line 0, column 0 in file tradewind/dataaccess/Blob.pcc
PCC-F-02102, Fatal error while doing C preprocessing
[ps2@rmcmz src]$
[ps2@rmcmz src]$
[ps2@rmcmz src]$
[ps2@rmcmz src]$ cat /usr/include/c++/3.3.4/clocale
// -*- C++ -*- forwarding header.

// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.

// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// the GNU General Public License. This exception does not however
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.

//
// ISO C++ 14882: 18.2.2 Implementation properties: C library
//

/** @file clocale
* This is a Standard C++ Library file. You should @c #include this file
* in your programs, rather than any of the "*.h" implementation files.
*
* This is the C++ version of the Standard C Library header @c locale.h,
* and its contents are (mostly) the same as that header, but are all
* contained in the namespace @c std.
*/

#ifndef _CPP_CLOCALE
#define _CPP_CLOCALE 1

#pragma GCC system_header

#include <locale.h>

// Get rid of those macros defined in <locale.h> in lieu of real functions.
#undef setlocale
#undef localeconv

namespace std
{
using ::lconv;
using ::setlocale;
using ::localeconv;
}

#endif
[ps2@rmcmz src]$
[ps2@rmcmz src]$

---------------------------------------------------

Thanks!

Shafi
Reply With Quote
Google UNIX.COM
Forum Sponsor
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m arg list too long ascii eof autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h dead.letter export display find grep grep multiple lines grep multiple words grep or grep recursive grep unique inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime perl array length ping port read awk output into multiple variables replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix forum unix forums unix interview questions unix memory usage unix mtime unix simulator unix.com vi tab size while loop within while loop shell script


All times are GMT -7. The time now is 04:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101