help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ compiling errors


From: Sivert Berg
Subject: g++ compiling errors
Date: Wed, 09 Feb 2005 18:18:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618

Hello.

I got some strange errors compiling a really simple program:

// File: cpptest.cpp

#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
  cout << "Hello, world!" << endl;

  return 0;
}

I compile it with: "g++ cpptest.cpp" and get the errors:

*/usr/include/c++/3.3.4/cctype:68: error: `isalnum' not declared
*/usr/include/c++/3.3.4/cctype:69: error: `isalpha' not declared
*/usr/include/c++/3.3.4/cctype:70: error: `iscntrl' not declared
*/usr/include/c++/3.3.4/cctype:71: error: `isdigit' not declared
*/usr/include/c++/3.3.4/cctype:72: error: `isgraph' not declared
*/usr/include/c++/3.3.4/cctype:73: error: `islower' not declared
*/usr/include/c++/3.3.4/cctype:74: error: `isprint' not declared
*/usr/include/c++/3.3.4/cctype:75: error: `ispunct' not declared
*/usr/include/c++/3.3.4/cctype:76: error: `isspace' not declared

............ (loads of similar errors between)..................

*/usr/include/c++/3.3.4/cmath:528: error: `sinhf' undeclared in namespace ` __gnu_cxx::__c99_binding' */usr/include/c++/3.3.4/cmath:536: error: `::sinhl' undeclared (first use here) */usr/include/c++/3.3.4/cmath:556: error: `tanf' undeclared in namespace ` __gnu_cxx::__c99_binding' */usr/include/c++/3.3.4/cmath:564: error: `::tanl' undeclared (first use here) */usr/include/c++/3.3.4/cmath:574: error: `tanhf' undeclared in namespace ` __gnu_cxx::__c99_binding' */usr/include/c++/3.3.4/cmath:582: error: `::tanhl' undeclared (first use here)

It seems to me that the wrapping of the C functions into std namespace is not going well, but I dont know why.... gcc is working just fine. And g++ was for just some days ago. Have reinstalled all packages (gcc and g++, slackware 10.0), but nothing changed. If anyone could help me I would be very happy :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]