我正在尝试交叉编译i.mx51平台的一些代码。我正在使用飞思卡尔公司提供的gcc为平台,见下文:
user@:/media/sf_repos/1109$ /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.我使用的makefile使用GCC的@标志。
@FILE Read options from FILE但是,使用提供的gcc文件和使用@FILE指向我的命令文件,我得到:
arm-none-linux-gnueabi-gcc: @hello.o_command: No such file or directory
arm-none-linux-gnueabi-gcc: no input files(我知道这个问题可能过于具体)有没有人知道这个问题?在-v --帮助中,我看到提到了@FILE,所以应该支持它!
发布于 2013-12-18 20:10:19
好吧,我自己找到了答案。
@是在gcc 4.2.1中引入的。请看文件。
所以我基于gcc 4.1.2的编译器不支持它。
https://stackoverflow.com/questions/20631315
复制相似问题