--- Comment #3 from parcour at gmail dot com 2006-02-20 22:04 ---
Subject: Re: strdup "implicit declaration" warning when using -ansi
I see. Sorry for a needless bug report. But thank you for your
helpful responses. I expect
I really will need to use -ansi (--> STRICT_ANSI), so I'll
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-20 20:07 ---
Ok, either use -D_GNU_SOURCE or don't use -ansi. Use -pedantic-errors instead
of -ansi.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26386
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-20 20:06 ---
This is not a GCC bug, strdup is not ISO C.
What is happening is that GCC is defining STRICT_ANSI and glibc says then you
cannot use another thing besides ISO C headers which means no strdup.
--
pinskia at gcc do