Forum > Other OS

[SOLVED] GO32V2 DOS target - illegal unit name

(1/1)

MemAvail:
Hi, anyone familiar with such error? (attachment)
--- Quote ---"Illegal unit name (expecting PROGRAM)"
--- End quote ---

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$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. 

--- Quote ---FP IDE 1.0.12 [2021/05/26]
Compiler 3.2.2
--- End quote ---

marcov:
I guess it means that filename must match unit/program name.

MemAvail:

--- Quote from: marcov on April 25, 2024, 08:47:47 pm ---I guess it means that filename must match unit/program name.

--- End quote ---
Thanks, it helped !

Navigation

[0] Message Index

Go to full version