Re: isalnum not declared

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

 



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@xxxxxxxxx>
To: "Nikolai Nezlobin" <nezlobin@xxxxxxxxxxx>
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
|
|


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux