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

Re: D_GNU_SOURCE option for gcc?



Martin Dickopp wrote:

stephen parkinson <stephen@zmemw16.demon.co.uk> writes:

Thomas H. George wrote:

I am using source code from UNIX SYSTEMS PROGRAMMING by Robbins &
Robbins.  It gives a compiler error unless compiled with the option
-D_GNU_SOURCE .
Where does this option come from - its not in the man pages?  Why is
it needed when using the Debian gcc and g++ packages?
30sec google search suggests it should perhaps be

-DGNU_SOURCE

Care to elaborate? A Google search for GNU_SOURCE turns up 1,680 hits
for me, while _GNU_SOURCE is found 17,200 times.

Martin


looked down first 2 pages
picked a few showing indications of a problem
followed a couple
follwed an answer in a news group archive
and i'm about to throw the 19yrs old cat across the room if she
don't stop nuzzling the keyboard
i suspect i should have asked for o/p of 'gcc --version'

stephen




Reply to: