Search code examples
linuxpascalldfpc

How to remove warning: link.res contains output sections; did you forget -T?


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

out:

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


Solution

  • 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