This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: isalnum not declared
Eljay,
'isalnum' is not my function, it is the part of namespace std and the GNU
project, right?
Compiler says that isalnum is not declared in the following line in cctype:
namespace std
{
using ::isalnum;
...
}
I think this is very embarrassing. Doesn't cctype refer to all the
necessary files, including the one that defines isalnum?
Thanks,
Nikolai
----- Original Message -----
From: "Eljay Love-Jensen" <eljay@adobe.com>
To: "Nikolai Nezlobin" <nezlobin@ece.umn.edu>
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:
| __Z7isalnumi
| (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:
| _isalnum
| (or just isalnum on some platforms)
|
| That's possibly why the compiler is not seeing your 'isalnum' in cctype.
|
| HTH,
| --Eljay
|
|