Article View: alt.os.linux.ubuntu
Article #121Re: where to put custom headers
From: Alan Curry
Date: Fri, 22 Jan 2010 07:32
Date: Fri, 22 Jan 2010 07:32
21 lines
2032 bytes
2032 bytes
In article <7rshd7Fa3vU1@mid.individual.net>, frank <frank@example.invalid> wrote: >> dan@dan-desktop:~/source$ gcc -std=c99 -Wall -Wextra rd2.c -o out; ./out >> rd2.c: In function �process_directory�: >> rd2.c:40: warning: implicit declaration of function �readdir_r� >> rd2.c:48: warning: implicit declaration of function �lstat� >> rd2.c:66: warning: implicit declaration of function �readlink� >> dan@dan-desktop:~/source$ > Every one of those functions has a "Feature Test Macro Requirements for glibc" note in the SYNOPSIS section of its man page. (If not, get some newer man pages.) Read those. Read the feature_test_macros(7) man page. Then add the necessary -D options to activate the set of features you want. WIth -std=c99 and no other feature-enabling macros defined, you get only the functions that are actually part of C99. The quick way to enable just about everything is -D_GNU_SOURCE -- Alan Curry
Technical Details
Message-ID:
<hjbk9j$s2d$1@speranza.aioe.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!aioe.org!not-for-mailReferences:
<7ror8bFjn6U1@mid.individual.net> <4b578c9a$0$18138$a9266ab1@news.buzzardnews.com> <7rshd7Fa3vU1@mid.individual.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 1200bcf240,4af9266eb6a90621 X-Google-Attributes: gid1200bcf240,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!aioe.org!not-for-mail From: pacman@kosh.dhis.org (Alan Curry) Newsgroups: alt.os.linux.ubuntu,gnu.gcc.help Subject: Re: where to put custom headers Date: Fri, 22 Jan 2010 07:32:03 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 21 Message-ID: <hjbk9j$s2d$1@speranza.aioe.org> References: <7ror8bFjn6U1@mid.individual.net> <4b578c9a$0$18138$a9266ab1@news.buzzardnews.com> <7rshd7Fa3vU1@mid.individual.net> NNTP-Posting-Host: sTxz+WYQxLsc0YoLnGRh2g.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org Originator: pacman@kosh.dhis.org (Alan Curry) X-Notice: Filtered by postfilter v. 0.8.1 X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Cancel-Lock: sha1:YCL9ErjGiJWzQcZsMzM/yB9xT0s=