Archive for October, 2009

“‘UCHAR_MAX’ undeclared (first use in this function)” solved

Thursday, October 22nd, 2009

In trying to compile an email testing tool on Fedora 11 I ran into error while make was compiling one of the programs.
I kept getting the error:

‘UCHAR_MAX’ undeclared (first use in this function)

While a googling of this error message did return a lot of results none of them had much useful content for actually solving it. There was a hint in one post on page 2 of my google results that helped me craft the right query to find the answer.

As it turn out UCHAR_MAX is declared in limits.h which for this particular program was not being included. Once that was added the program compiled with no complaints.