Kod: Zaznacz cały
program p1;
uses crt;
begin
clrscr;
writeln('Witaj!');
end.
fpc program1 -oprogram1w
i dostaję oto taki warning:
Kod: Zaznacz cały
/usr/bin/ld warning link.res contains output sections; did you forget -T?
Kod: Zaznacz cały
program p1;
uses crt;
begin
clrscr;
writeln('Witaj!');
end.
Kod: Zaznacz cały
/usr/bin/ld warning link.res contains output sections; did you forget -T?
Kod: Zaznacz cały
fpc program1 -o program1w
Nie masz się czym przejmować, to prawdopodobnie bug w programie "ld".kamandir82 pisze:Kompiluję program:Szukałem w google, czytałem man'a, ale nic... Pomóżcie!Kod: Zaznacz cały
/usr/bin/ld warning link.res contains output sections; did you forget -T?
Więc nie pozostaj ci nic innego jak ignorować to ostrzeżenie, może kiedyś ktoś to naprawi .An error occurred while linking, or "did you forget -T?"
There is a bug in GNU LD 2.19 and 2.19.1 that causes it to crash when processing FPC-generated linker scripts. This bug has been fixed in the mean time.
At the same time, LD has been modified to emit a warning of the form
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
This warning is benign, and FPC intentionally does not pass -T to LD. The reason is that if -T is used, LD's internal linker script is ignored and only FPC's linker script is used. Such linker scripts also contain paths to libraries however, and if we would ignore the internal linker script then LD would no longer find libraries in distribution-specific directories.
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 11 gości