Run Debian program compiled on Ubuntu with Lazarus

Asked

Viewed 48 times

1

When I compile any source developed on Lazarus on Ubuntu, it normally runs on Lazarus, but on Debian with the command ./Programa, gives the following error: "Segmentation failure". The program can be as simple as it is, even if it only displays a simple text output. Systems have the same 32-bit architecture. Is it the absence of any library or incompatibility? I have no way to compile directly in Debian as it is a VPS and I only have SSH access.

Follow the source code:

program Programa;

uses
  SysUtils;

var
iParam: string;

begin
  iParam := ParamStr(1);
  Writeln(iParam);
end.
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.