470,858 Members | 1,668 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,858 developers. It's quick & easy.

Warning (Anachronism)

Hi All
i am trying to compile my C code without warning messages

but i don get any idea about the below c compiler warning:

line 67: Warning (Anachronism): Attempt to redefine ITEMS_IN_ONE_PAGE without using #undef.

Related code
67:#define ITEMS_IN_ONE_PAGE 20

please help me to resolve the bug.

Thanks in advance
Mar 24 '08 #1
1 4366
9,208 Expert Mod 8TB
On ine 67 you are defining ITEMS_IN_ONE_PAGE but that symbol has already been defined before line 67. That is, there is already a #define ITEMS_IN_ONE_PAGE before this one.

Either a) remove the second define or b) undefine the symbol so you can re-define it.

This message is a preprocessor error and not a compiler error.
Mar 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Bill Burris | last post: by
1 post views Thread by spanov | last post: by
92 posts views Thread by Heinrich Pumpernickel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.