* error compiling
@ 2001-02-02 7:33 Puneet Singhal
0 siblings, 0 replies; 2+ messages in thread
From: Puneet Singhal @ 2001-02-02 7:33 UTC (permalink / raw)
To: gcc-help
Hi all
I am getting foll error:
numeric constant contains digits beyond the radix
for the code given below:
#define ABUSIVE_USAGE 08
#define ABUSIVE_USAGE_CAPTURE 09
#define ISO_ABUSIVE_USAGE 207 /* special conditions */
#define ISO_ABUSIVE_USAGE_CAPTURE 207 /* special conditions */
if (P_iCode == ABUSIVE_USAGE)
{
return ISO_ABUSIVE_USAGE;
}
if (P_iCode == ABUSIVE_USAGE_CAPTURE)
{
return ISO_ABUSIVE_USAGE_CAPTURE;
}
can anyone help??
thanks for your time.
Puneet
*********************************************
The Boulder Pledge: "Under no circumstances will I ever purchase anything
offered to me as the result of an unsolicited email message. Nor will I
forward chain letters, petitions, mass mailings, or virus warnings to large
numbers of others. This is my contribution to the survival of the online
community."
*********************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: error compiling
@ 2001-02-02 7:44 David Korn
0 siblings, 0 replies; 2+ messages in thread
From: David Korn @ 2001-02-02 7:44 UTC (permalink / raw)
To: 'Puneet Singhal', gcc-help
>Hi all
>I am getting foll error:
>numeric constant contains digits beyond the radix
>
>for the code given below:
>
>#define ABUSIVE_USAGE 08
>#define ABUSIVE_USAGE_CAPTURE 09
Leading zeros make the preprocessor think that you are writing an
octal number; you can't write decimal with leading zeros. Since '8' and
'9' aren't octal digits, it gets confused. Remove the zeros and all
will be well.
DaveK
--
The Boulder Pledge: "Under no circumstances will I ever purchase anything
offered to me as the result of an unsolicited email message. Nor will I
forward chain letters, petitions, mass mailings, or virus warnings to large
numbers of others. This is my contribution to the survival of the online
community."
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-02 7:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02 7:33 error compiling Puneet Singhal
2001-02-02 7:44 David Korn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).