GIT上的hello例程,用gcc编译正常,可以运行,但是用arm gcc编译提示了错误,能帮忙看看是什么问题吗?
下面是编译的命令:
dingwf@ubuntu:~/weidongshansoft/source/01_hello$ arm-buildroot-linux-gnueabihf-gcc -o hello hello.c
下面是编译的提示:
/home/dingwf/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/…/lib/gcc/arm-buildroot-linux-gnueabihf/7.5.0/…/…/…/…/arm-buildroot-linux-gnueabihf/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27’ not found (required by /home/dingwf/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/…/lib/gcc/arm-buildroot-linux-gnueabihf/7.5.0/…/…/…/…/arm-buildroot-linux-gnueabihf/bin/ld)
collect2: error: ld returned 1 exit status