warning: link.res contains output sections; did you forget -T? lazarus / 61-Beginners ---------------------------------------------------------------------- rgh · 2022-03-05 15:11 Could anyone tell me what I'm doing wrong here? I have the compiler warning as per subject line. I'm compiling on 2 different Linux platforms. An HP laptop with Ubuntu Code: [Select]$ fpc -iW 3.0.4+dfsg-23and a raspberry pi Code: [Select]$ fpc -iW 3.0.4+dfsg-22+rpi1 For each, I installed fpc from the distribution's repository. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program hello;begin  writeln ('Hello, world.');end.  In both cases I get the same warning. Here is the x86 platform: Code: [Select]$ fpc -Xs -CX -XX -Tlinux hello.pas Free Pascal Compiler version 3.0.4+dfsg-23 [2019/11/25] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling hello.pas Linking hello /usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T? 4 lines compiled, 0.1 sec $ The resulting executables work. In fact they work, even if I leave out -Tlinux entirely. I found an old thread about this issue https://fpc-pascal.freepascal.narkive.com/xgz0VwhU/issue-with-linking but I don't think the solutions suggested there apply. On the HP machine at least, I have a working C compiler with the packages mentioned in that thread are already installed. Code: [Select]$ apt list --installed | grep libc-dev libc-dev-bin/focal-updates,focal-security,now 2.31-0ubuntu9.7 amd64 [installed,automatic] linux-libc-dev/focal-updates,focal-security,now 5.4.0-100.113 amd64 [installed,automatic] $ $ apt list --installed | grep build-essential build-essential/focal-updates,now 12.8ubuntu1.1 amd64 [installed,automatic] ---------------------------------------------------------------------- Thaddy · 2022-03-05 15:36 Which version of FPC? This looks like an old FPC version below 3.0.4 because 3.2.0 does not have that message anymore. I does not harm, btw, you can safely  ignore that linker message. (It is LD, not FPC) ---------------------------------------------------------------------- rgh · 2022-03-05 15:41 Thanks Thaddy. I'll just ignore the message for now.