From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16964 invoked by alias); 16 Jun 2004 08:50:00 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16938 invoked from network); 16 Jun 2004 08:49:56 -0000 Received: from unknown (HELO mhub-c4.tc.umn.edu) (160.94.128.34) by sourceware.org with SMTP; 16 Jun 2004 08:49:56 -0000 Received: from nnxpubwytgvj3u (x128-101-248-206.dialup.umn.edu [128.101.248.206] (may be forged)) by mhub-c4.tc.umn.edu with ESMTP; Wed, 16 Jun 2004 03:49:56 -0500 (CDT) X-Umn-Remote-Mta: [N] x128-101-248-206.dialup.umn.edu [128.101.248.206] #+HF+LO+TS+AU Message-ID: <002f01c4537e$d2bbe350$cef86580@nnxpubwytgvj3u> From: "Nikolai Nezlobin" To: Cc: Subject: Re: isalnum not declared CODE Date: Wed, 16 Jun 2004 08:50:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00159.txt.bz2 Dear All, This is the short version of the code that produces the isalnum error. The files (agstring.h, CType.h, main.cc, makefile, makefile.common) and two error messages (for the short code and for the whole project) are below. All files, except for makefile.common, were in /mnt/hdb1/Sour/CType. The line top=/mnt/hdb1/Sour in makefile reflects this. You will need to change the top= if you try to compile the code. makefile.common was kept one level upper (in /mnt/hdb1/Sour) Thanks, Nikolai ****************mnt/hdb1/Sour/CType/agstring.h****************************** ** // This may look like C code, but it is really -*- C++ -*- /* Copyright (C) 1988 Free Software Foundation written by Doug Lea (dl@rocky.oswego.edu) */ #ifndef _String_h #define _String_h 1 #include #undef OK #define INLINE struct StrRep // internal String representations { unsigned short len; unsigned short sz; char s[1]; }; class String { protected: StrRep* rep; // Strings are pointers to their representations public: String(); String(const char* t); ~String(); String& operator = (const char* y); friend INLINE ostream& operator<<(ostream& s, const String& x); }; INLINE ostream& operator<<(ostream& s, const String& x); #endif ******************mnt/hdb1/Sour/CType/CType.h******************************* **** #ifndef CType_h #define CType_h #include "agstring.h" typedef enum { C_Node_Phi=0} CType; const int CType_num=1; const String CType_string[CType_num]={"Node_Phi"}; #endif *********************mnt/hdb1/Sour/CType/main.cc**************************** **** #include "CType.h" #include "agstring.h" int main(){ for(int i=0;i header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. In file included from /usr/include/c++/3.2.3/bits/localefwd.h:48, from /usr/include/c++/3.2.3/ios:48, from /usr/include/c++/3.2.3/ostream:45, from /usr/include/c++/3.2.3/iostream:45, from /usr/include/c++/3.2.3/backward/iostream.h:32, from agstring.h:9, from CType.h:4, from main.cc:1: /usr/include/c++/3.2.3/cctype:68: `isalnum' not declared /usr/include/c++/3.2.3/cctype:69: `isalpha' not declared /usr/include/c++/3.2.3/cctype:70: `iscntrl' not declared /usr/include/c++/3.2.3/cctype:71: `isdigit' not declared /usr/include/c++/3.2.3/cctype:72: `isgraph' not declared /usr/include/c++/3.2.3/cctype:73: `islower' not declared /usr/include/c++/3.2.3/cctype:74: `isprint' not declared /usr/include/c++/3.2.3/cctype:75: `ispunct' not declared /usr/include/c++/3.2.3/cctype:76: `isspace' not declared /usr/include/c++/3.2.3/cctype:77: `isupper' not declared /usr/include/c++/3.2.3/cctype:78: `isxdigit' not declared /usr/include/c++/3.2.3/cctype:79: `tolower' not declared /usr/include/c++/3.2.3/cctype:80: `toupper' not declared In file included from /usr/include/c++/3.2.3/bits/locale_facets.h:63, from /usr/include/c++/3.2.3/bits/basic_ios.h:41, from /usr/include/c++/3.2.3/ios:51, from /usr/include/c++/3.2.3/ostream:45, from /usr/include/c++/3.2.3/iostream:45, from /usr/include/c++/3.2.3/backward/iostream.h:32, from agstring.h:9, from CType.h:4, from main.cc:1: /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:44: `_ISupper' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:45: `_ISlower' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:46: `_ISalpha' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:47: `_ISdigit' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:48: `_ISxdigit' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:49: `_ISspace' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:50: `_ISprint' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:51: `_ISgraph' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:52: `_IScntrl' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:53: `_ISpunct' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:54: `_ISalnum' was not declared in this scope make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/mnt/hdb1/Sour/CType' make: *** [all] Error 2 ***************Error Message for the Whole Project******************* root@nezlobin:/mnt/hdb1/Source/src# make make st make[1]: Entering directory `/mnt/hdb1/Source/src' cd /mnt/hdb1/Source/src/Parser && \ g++ -g -v -Wall -MMD parser.tab.c -c -o parser.tab.o Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i4 86-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.2.3 /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/cc1plus -v -MMD parser.tab.d -MQ parser.tab.o -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX _ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix __ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLI NE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__ i386 -D__i386__ -D__tune_i486__ parser.tab.c -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase parser.tab.c -g -Wall -version -o /tmp/ccDVr3jc.s GNU CPP version 3.2.3 (cpplib) (i386 Linux/ELF) GNU C++ version 3.2.3 (i486-slackware-linux) compiled by GNU C version 3.2.3. ignoring nonexistent directory "/usr/i486-slackware-linux/include" #include "..." search starts here: #include <...> search starts here: /mnt/hdb1/Source/src/CType /mnt/hdb1/Source/src/Node /mnt/hdb1/Source/src/Edge /mnt/hdb1/Source/src/Matrix /mnt/hdb1/Source/src/Resistor /mnt/hdb1/Source/src/Capacitor /mnt/hdb1/Source/src/Tunnel /mnt/hdb1/Source/src/VSource /mnt/hdb1/Source/src/CObserver/Observer/StrArr /mnt/hdb1/Source/src/CObserver/Observer/Buffer /mnt/hdb1/Source/src/CObserver/Observer /mnt/hdb1/Source/src/CObserver /mnt/hdb1/Source/src/VSource/IntList /mnt/hdb1/Source/src/Iterator /mnt/hdb1/Source/src/Parameter /mnt/hdb1/Source/src/Manager /mnt/hdb1/Source/src/Parser /mnt/hdb1/Source/src/CObserver/Bin2asc /mnt/hdb1/Source/src /usr/include/c++/3.2.3 /usr/include/c++/3.2.3/i486-slackware-linux /usr/include/c++/3.2.3/backward /usr/local/include /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include /usr/include End of search list. In file included from /usr/include/c++/3.2.3/backward/iostream.h:31, from /mnt/hdb1/Source/src/CType/agstring.h:26, from /mnt/hdb1/Source/src/CType/CType.h:4, from parser.y:7: /usr/include/c++/3.2.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. In file included from /usr/include/c++/3.2.3/bits/localefwd.h:48, from /usr/include/c++/3.2.3/ios:48, from /usr/include/c++/3.2.3/ostream:45, from /usr/include/c++/3.2.3/iostream:45, from /usr/include/c++/3.2.3/backward/iostream.h:32, from /mnt/hdb1/Source/src/CType/agstring.h:26, from /mnt/hdb1/Source/src/CType/CType.h:4, from parser.y:7: /usr/include/c++/3.2.3/cctype:68: `isalnum' not declared /usr/include/c++/3.2.3/cctype:69: `isalpha' not declared /usr/include/c++/3.2.3/cctype:70: `iscntrl' not declared /usr/include/c++/3.2.3/cctype:71: `isdigit' not declared /usr/include/c++/3.2.3/cctype:72: `isgraph' not declared /usr/include/c++/3.2.3/cctype:73: `islower' not declared /usr/include/c++/3.2.3/cctype:74: `isprint' not declared /usr/include/c++/3.2.3/cctype:75: `ispunct' not declared /usr/include/c++/3.2.3/cctype:76: `isspace' not declared /usr/include/c++/3.2.3/cctype:77: `isupper' not declared /usr/include/c++/3.2.3/cctype:78: `isxdigit' not declared /usr/include/c++/3.2.3/cctype:79: `tolower' not declared /usr/include/c++/3.2.3/cctype:80: `toupper' not declared In file included from /usr/include/c++/3.2.3/bits/locale_facets.h:63, from /usr/include/c++/3.2.3/bits/basic_ios.h:41, from /usr/include/c++/3.2.3/ios:51, from /usr/include/c++/3.2.3/ostream:45, from /usr/include/c++/3.2.3/iostream:45, from /usr/include/c++/3.2.3/backward/iostream.h:32, from /mnt/hdb1/Source/src/CType/agstring.h:26, from /mnt/hdb1/Source/src/CType/CType.h:4, from parser.y:7: /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:44: `_ISupper' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:45: `_ISlower' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:46: `_ISalpha' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:47: `_ISdigit' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:48: `_ISxdigit' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:49: `_ISspace' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:50: `_ISprint' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:51: `_ISgraph' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:52: `_IScntrl' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:53: `_ISpunct' was not declared in this scope /usr/include/c++/3.2.3/i486-slackware-linux/bits/ctype_base.h:54: `_ISalnum' was not declared in this scope In file included from parser.y:9: /mnt/hdb1/Source/src/VSource/Sinusoid.h:20: default argument given for parameter 3 of `Sinusoid::Sinusoid(double, double, double = 0x0000000000000000000000000000000000000000)' /mnt/hdb1/Source/src/VSource/Sinusoid.h:8: after previous specification in ` Sinusoid::Sinusoid(double, double, double = 0x0000000000000000000000000000000000000000)' make[1]: *** [/mnt/hdb1/Source/src/Parser/parser.tab.o] Error 1 make[1]: Leaving directory `/mnt/hdb1/Source/src' make: *** [all] Error 2