The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 12:54 PM
rename a file to include the ip address MrMac UNIX for Dummies Questions & Answers 10 11-12-2006 01:48 PM
Compile and dump errors to a text file starstarting UNIX for Dummies Questions & Answers 6 10-23-2006 08:45 AM
How to include PDF file with spaces lawadm1 Shell Programming and Scripting 1 05-19-2006 10:03 PM
compile xev on HPUX 10.20 - errors lan High Level Programming 1 05-16-2002 12:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-09-2008
shafi2all shafi2all is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 68
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0