This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compile error on HPUX(11.23- gcc 4.1.1)
- From: "uttam hoode" <uttamhoode at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Dec 2006 15:51:29 +0530
- Subject: compile error on HPUX(11.23- gcc 4.1.1)
hi all,
i have two identical HPUX machines(11.23 ia64). i downloaded GCC
4.1.1 depot from
http://hpux.cs.utah.edu/. and it was working fine.
but now i am not able to compile code on ONE MACHINE. when i executed
the following code
#include <stdio.h>
int main (void)
{
const char asm[] = "6502";
printf ("the string asm is '%s'\n", asm);
return 0;
}
i am getting following error
test.c: In function 'int main()':
test.c:6: error: expected unqualified-id before 'asm'
test.c:7: error: expected primary-expression before 'asm'
the same code is working on second machine.
i think compiler is confused between ANSI/ISO standards or some
libraries are missing....
Thanks in advance....
Regards,
uttam hoode
(india)