Компиляция в Linux для Windows с опцией -T - PullRequest
0 голосов
/ 19 июня 2019

Я пытаюсь скомпилировать простейшее приложение helloworld в Linux для Windows:

program HelloWorld;
uses crt;
begin
    writeln('Hello, World!');
end. 

Я проверил документацию, данную здесь .

Я использую следующую команду fpc с опцией -Twin64, но она выдает ошибку:

$ fpc helloworld.pas -Twin64
Free Pascal Compiler version 3.0.0+dfsg-11+deb9u1 [2017/06/10] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win64 for x64
Compiling helloworld.pas
Fatal: Can't find unit system used by HelloWorld
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

Я работаю над Debian Stable Linux с Free Pascal Compiler version 3.0.0.

Где проблема и как ее можно решить? Спасибо за вашу помощь.

...