This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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)


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