This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.95.3 Bug?
- To: "Tom Browder" <TBrowder at home dot com>
- Subject: Re: GCC 2.95.3 Bug?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Mar 2001 19:14:52 -0300
- Cc: <gcc-bugs at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <001201c0b845$b6fc82f0$98520c18@CX376762B>
On Mar 29, 2001, "Tom Browder" <tbrowder@home.com> wrote:
> The following code gives an error from ld (version 2.10.91)
> using gcc 2.95.3 ("undefined reference to strdupa"):
And where is the bug here?
I suppose you should define _GNU_SOURCE, not __USE_GNU, and you should
do it before including <string.h>, not <srtring.h>.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me