ld: Mismatched ABI (not an ELF file) cannot compile

2k Views Asked by At

i have simple C hello world program and i wanted to compile it on HP-UX ia64 11.31,but i get the following error

/* Hello World program */

#include<stdio.h>

main()
{
    printf("Hello World");
}
cc -v +DD64 example
LPATH=/usr/lib/hpux64:/opt/langtools/lib/hpux64
 /usr/ccs/bin/ld -o a.out -u___exit -umain example -lc
ld: Mismatched ABI (not an ELF file) for example
Fatal error.
 removing /var/tmp/AAA003501
0

There are 0 best solutions below