This is the mail archive of the
mailing list for the GCC project.
Re: isalnum not declared
'isalnum' is not my function, it is the part of namespace std and the GNU
Compiler says that isalnum is not declared in the following line in cctype:
I think this is very embarrassing. Doesn't cctype refer to all the
necessary files, including the one that defines isalnum?
----- Original Message -----
From: "Eljay Love-Jensen" <email@example.com>
To: "Nikolai Nezlobin" <firstname.lastname@example.org>
Sent: Monday, June 14, 2004 7:14 PM
Subject: Re: isalnum not declared
| Hi Nikolai,
| >The key point, I think, is that compiler does not see 'isalnum' etc in
| cctype. How is it possible?
| In C++, this is a C++ declaration:
| extern int isalnum(int Ch);
| When compiled, it will result in a C++ mangled symbol:
| (depending on the platform; expect variations)
| In C++, this is a C declaration:
| extern "C" int isalnum(int Ch);
| When compiled, it will result in a C symbol:
| (or just isalnum on some platforms)
| That's possibly why the compiler is not seeing your 'isalnum' in cctype.