Kevin O'Gorman wrote:
On 10/5/06, Boyd Stephen Smith Jr. <[EMAIL PROTECTED]> wrote:
On Thursday 05 October 2006 16:10, "Kevin O'Gorman" <[EMAIL PROTECTED]>
wrote about '[gentoo-user] C programming use of isascii(), ispunct() and
isblank() fails':
> Why is it that using some of the macros from ctype.h fails to compile?

You code compiles fine for me.  I'm using... hrm, an invalid profile...
well, gcc --version reports 'gcc (GCC) 4.1.1 (Gentoo 4.1.1-r1)'

>         if (ispunct(i)) punctf(" punct");

I did get a link error, because you haven't defined "punctf"; I'll bet you
meant "printf".



FWIW - I get "implicit declaration of function 'isblank'" as well - system is:

Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)

If I add '-D_GNU_SOURCE' to the compile line then it goes away. Not sure if this is the intended behavior tho...


regards

Mark
--
gentoo-user@gentoo.org mailing list

Reply via email to