This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compilation error


Hi,

even if I try to compile a simple program like

#include <stdio.h>
main()
{
        printf("\nHello World\n") ;
}

I am getting the following error

/usr/include/stdio.h:61: Invalid token in expression
/usr/include/stdio.h:63: Invalid token in expression

The output of gcc -v command is
gcc version 1.36

The output of uname -a is
SunOS misbuild1 5.5.1 Generic_103640-29 sun4m sparc SUNW,SPARCstation-20

The lines 61 thru 63 of stdio.h are,
#if machine(i386) || defined(__i386)
#define _NFILE  60      /* initial number of streams: Intel x86 ABI */
#elif #machine(ppc) || defined(__ppc)

Further, stdio.h does not have a combination of \r\n as end-of-line.

I need a solution for this ASAP. Thanks in advance to anybody who can
help.

Gourisankar.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]