0

我有简单的 C hello world 程序,我想在 HP-UX ia64 11.31 上编译它,但出现以下错误

/* 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
4

0 回答 0