[SOLVED] GO32V2 DOS target - illegal unit name lazarus / 68-Other OS ---------------------------------------------------------------------- MemAvail · 2024-04-25 18:43 Hi, anyone familiar with such error? (attachment) Quote"Illegal unit name (expecting PROGRAM)"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 {$OUTPUT_FORMAT COFF}unit DosObj; interface    function PRAND(Min, Max: Integer) : Integer; Public name 'PRAND';implementation    function PRAND(Min, Max: Integer) : Integer; Public name 'PRAND';    var        Result : Integer;    begin        Randomize;        Result := Random(Max - Min) + Min;        WriteLn('PRAND ', Result);        PRAND := Result;    end;end.  QuoteFP IDE 1.0.12 [2021/05/26] Compiler 3.2.2 ---------------------------------------------------------------------- marcov · 2024-04-25 18:47 I guess it means that filename must match unit/program name. ---------------------------------------------------------------------- MemAvail · 2024-04-25 19:34 Quote from: marcov on April 25, 2024, 08:47:47 pmI guess it means that filename must match unit/program name. Thanks, it helped !