> From [EMAIL PROTECTED] Mon Sep 8 09:45:30 2003
> Date: Mon, 8 Sep 2003 17:24:42 +0200 (CEST)
> From: Villy Kruse <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: "log" is a reserved function name in ANSI C
>
>
>
> A week or so ago someone got compile problems on a Solaris system using
> the gcc compiler. The problem was caused by a user defined function
> called "log" in the lprNG code and as the -Werror flag was set this
> warning was then traeated as an error and the build therefore failed.
>
> Dosing some googling I found out that this is a known issue by the GCC
> bug tracking system, and that the name "log" is indeed a reserved word
> not to be used by an application except when calling the library function
> "log" as defined in <math.h>.
>
>
> Following links may shed som more light on the matter.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9482
>
> http://mail.gnu.org/archive/html/monit-dev/2003-06/msg00033.html
>
> http://gcc.gnu.org/ml/gcc-prs/2003-01/msg01599.html
>
>
>
> Villy
I checked your references and had a bit of a giggle at some of the comments.
"... mindlessly complient... ... stealing identifiers is a bit over the top..."
I recommend reading the above URLs for an insight into the problem
of legacy compatibility and current standards. Very interesting
and educational.
Patrick ("We have no mind left,
so I guess we are mindlessly non-complient") Powell
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------