

WSL1 provides enough functionality in order for GDB to run. Indicating the binary was built for linux 64-bit system You should see in command-line the following output: (Running the command-line requires both WSL installed and FPC for the distro installed) Note, that the use of "WSL" is critical (otherwise you'll get a windows binary). Run the following commands from command line. Procedure RunLoop var i : integer begin for i := 1 to 10 do write ( i, ' ' ) writeln end begin writeln ( 'hello world' ) writeln ( sizeof ( Pointer )) RunLoop end. using notepad) and put the following code: Here's an example create a folder in Windows, and create a file there test.pas.Įdit the file (i.e.

Similar to the sample application, FPC itself can also be ran from Windows. If you used the example above to compile the application, then you should be able to run as following, from Windows command-line The "wsl" utility can be used to run Linux (x86_64) targets on Windows. Run the following commands on Linux command-line sudo apt-get update "Virtual Machine Platform" is only requires for WSL2. Note: WSL1 only requires "Windows subsystem for Linux" to be installed. The link is also available in "Add and Remove programs" section of control panel).

You can run control panel (press Win+R type in "control" and press enter) and search for "windows features" in order to bring the dialog up.

you can either install WSL through Powershell (as suggested in Microsoft documentation OR you can install via "Turn Windows features on or off").The following steps are using Ubuntu 16.4 LTS distro: Microsoft provides a number of Linux distros through Microsoft Store application. The functionality is ENOUGH to run FPC without modifications. This is not an actual Linux kernel, but only its substitute, which provides the most common functionality. WSL1 is implemented as Microsoft developed Linux-kernel-compatible execution environment. 4.3 Quick and Dirty - Using WSL FPC from Windows.3 Running ELF binaries from Windows app.
