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

Re: glibc devel info pages



>>>>> "Ben" == Ben Collins <bcollins@debian.org> writes:

    Ben> By default, __USE_GNU is defined. If you want to define it

(perhaps you meant "...is undefined"???)

    Ben> explicitly, then use -D_GNU_SOURCE in your CFLAGS.

It doesn't seem to be the case here:

> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -g -O2 -Wall -c -o main.o main.c        
main.c: In function `xmlparse_file':
main.c:14: warning: implicit declaration of function `asprintf'


>gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -g -O2 -D_GNU_SOURCE -Wall -c -o main.o main.c
[no warnings]

So it looks like I have to define _GNU_SOURCE explicitly in order to
get rid of the warning.
-- 
Brian May <bam@debian.org>



Reply to: