This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Documentation request for -ansi
On Wed, Jun 21, 2000 at 03:35:26PM -0700, Zack Weinberg wrote:
: I know what they'll say: if you need erf() or any function not in C89,
: don't use -ansi.
Well I'll ask them and then I'll know. ;)
But that would technically be the correct point, and seems
to be the policy of glibc.
: This is of course not very helpful. I would suggest you try
: -ansi -D_XOPEN_SOURCE=500; that gets you a conforming-mode compiler,
: and (I think) all of the C library except the GNU extensions.
Yes. In fact, I just using the C99 switch will work for me.
However, once you know that you already know the problem.
On a larger scope, I wouldn't like to see others spend a
significant amount of time finding out about that (common)
mistake.
--
claus.fischer@intel.com Intel Corporation SC12-205 ... not speaking
phone +1-408-765-6808 2200 Mission College Blvd. for Intel
fax +1-408-765-9322 Santa Clara, CA 95052-8119