如何删除警告:link.res包含输出部分;你忘了-T吗? [英] How to remove warning: link.res contains output sections; did you forget -T?
问题描述
我正在使用fpc编译器,并且想删除此警告.我已经阅读了fpc的选项,但是找不到该怎么做.这可能吗? 它在我运行命令时出现:
I'm using fpc compiler and I want to remove this warning. I've read fpc's options but I can't find how to do that. Is this possible? it appear when I run command:
fpc foo.pas
退出:
目标操作系统:用于i386的Linux编译foo.pas链接p2/usr/bin/ld: 警告:link.res包含输出节;你忘了-T吗? 79 行编译,0.1秒
Target OS: Linux for i386 Compiling foo.pas Linking p2 /usr/bin/ld: warning: link.res contains output sections; did you forget -T? 79 lines compiled, 0.1 sec
推荐答案
在某些LD版本中是一个错误.现在暂时将其忽略,或者查看您的发行版是否具有LD的更新. (软件包binutils)
It's a bug in certain LD versions. Just ignore it for now, or see if your distro has an update for your LD. (package binutils)
http://www.freepascal.org/faq.var#unix-ld219
这篇关于如何删除警告:link.res包含输出部分;你忘了-T吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!