This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12543] New: ISO C requires whitespace after the mac
- From: "sfm_9 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2003 22:38:10 -0000
- Subject: [Bug c/12543] New: ISO C requires whitespace after the mac
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12543
Summary: ISO C requires whitespace after the mac
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sfm_9 at yahoo dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: ISO C requires whitespace after the mac
GCC host triplet: ISO C requires whitespace after the mac
GCC target triplet: ISO C requires whitespace after the mac
I have this code,
OS: red hat linux 8. kernel version:2.4.18-14
gcc version: 3.2
#include <stdio.h>
#define CONST=10
#define max (a,b) (((a) > (b)) ? (a): (b))
main()
{
int i;
i = max (20, CONST);
printf("El mayor de %d y %d es %d\n", 20, CONST, i);
}
I compiled with:
gcc prep1.c -E -o prep1.i
prep1.c:2:14: warning: ISO C requires whitespace after the macro name
an afer with:
gcc prep1.c -o prep1
prep1.c:2:14: warning: ISO C requires whitespace after the macro name
prep1.c: In function `main':
prep1.c:9: `a' undeclared (first use in this function)
prep1.c:9: (Each undeclared identifier is reported only once
prep1.c:9: for each function it appears in.)
prep1.c:9: `b' undeclared (first use in this function)
prep1.c:9: parse error before '=' token
prep1.c:11: parse error before '=' token
i dont know why gave that errors..