I am using LisaEm under Windows 11. I have made a series of test codes to learn pascal, but I seemed to have hit a wall.
Program LisaTest4;
(*This is an example of a remark*)
var
i:integer;
begin
begin
For i = 1 to 5 do
WriteLn ('Hello from Apple Lisa. Line:' :i);
end;
end.
I know this program probably has some errors regarding the formatting. I corrected it in LPW and it compiled successfully. When it comes to linking it to create the executable program everything goes to pot. It appears that I am missing most or all libraries. I have tried linking it with normal inputs, I have also tried to use the option function to specifically declare sys1lib, iospaslib, and qd/support, to no avail. I am new to LOS and LPW so I am trying my best to work out my own problems. I have gotten some invaluable help from TorZidan with the LisaEm, but now I am stuck.
Any suggestions?
The linker needs IOSPASLIB.OBJ, SYS1LIB.OBJ and SYS2LIB.OBJ as inputs (the intrinsic units come through INTRINSIC.LIB automatically). If it says they're missing, check they're actually on the Workshop volume you booted in LisaEm — some Workshop images don't include them, and then no amount of naming them helps. Our exec files list them right after the program's own .OBJ files, then a blank line, then the output name.
I ran into this issue also.
This document is for you: https://github.com/arcanebyte/lisaem/blob/master/LisaEmAsASoftwareDevelopmentEnvironment.md#compiling-linking-and-running-the-sample-hello_worldtext-program
Quote from: bmwcyclist on October 22, 2026, 09:42:48 AMThe linker needs IOSPASLIB.OBJ, SYS1LIB.OBJ and SYS2LIB.OBJ as inputs (the intrinsic units come through INTRINSIC.LIB automatically). If it says they're missing, check they're actually on the Workshop volume you booted in LisaEm — some Workshop images don't include them, and then no amount of naming them helps. Our exec files list them right after the program's own .OBJ files, then a blank line, then the output name.
Every Workshop image should include IOSPASLIB, SYS1LIB, and SYS2LIB. If your install doesn't have them, then something's wrong with your installation. The Workshop can't even boot at all if IOSPASLIB and SYS1LIB aren't present.
Also, you don't need to link with all three when writing a program as simple as this. For your demo program here, you should only need IOSPASLIB. SYS1LIB will start becoming necessary when you start doing anything much more complicated, but SYS2LIB will really only be needed if you're developing LOS apps as opposed to Workshop stuff. If you're doing anything with floating-point types, you'll need IOSFPLIB.
To give a library to the Linker, you don't use any options; you just specify the name of the libary as if it's another input object file.
Make sure that, if your volume has both LOS and the Workshop installed, you installed LOS first and the Workshop second, not the other way round. The Workshop's libraries are the unpacked versions that the Linker requires, whereas LOS installs the packed versions, which the Linker will reject with a rather cryptic error.
Thanks Alex, that's the right correction --
I did not know the order matters: LOS first, Workshop second, or the Linker gets the packed libraries and throws that cryptic error.
I also don't know how my workshop ended up missing some files (see previous thread), perhaps accidentally deleted?
Using the information above (i.e. the names of the libraries from bmwcyclist, and the example of what the linker looks like from TorZidan) it linked properly and ran as expected.
I was concerned about missing libraries since I installed the 3 update disks to get to version 3.9. Does anyone know if there is a list of all libraries and what they cover?
If you're keen to make Office System applications, I would avoid the 3.9 upgrade. The main focus of this upgrade seems to be improvements for developing Macintosh applications, and I've known it to break LOS things (in my case, I ran into trouble with floating-point numbers being handled differently).
(If you want to make Mac stuff, then go for it!)
Quote from: dmac1267 on October 23, 2026, 12:20:09 AMI was concerned about missing libraries since I installed the 3 update disks to get to version 3.9. Does anyone know if there is a list of all libraries and what they cover?
The readme in my LisaSourceCompilation repo answers this, at least for the regular 3.0 version, and goes into a good bit of detail about what's in each library. It also covers a ton of other details about LOS that you may (or may not) be interested in. https://github.com/alexthecat123/LisaSourceCompilation
Using the test program above, what would be required to make it an executable file for LOS. The ultimate goal is to create/translate some entertainment options for the Lisa. In this regard, I would need to figure out how to make a program executable so it could be run in the LOS environment.
Quote from: dmac1267 on October 24, 2026, 12:19:49 AMUsing the test program above, what would be required to make it an executable file for LOS. The ultimate goal is to create/translate some entertainment options for the Lisa. In this regard, I would need to figure out how to make a program executable so it could be run in the LOS environment.
Alex has some wonderful guidence in his github for his minesweeper app.
Ok so I did some reading, and I was able to process the test program over to LOS. Of course it was hanked since i indicated that documentation would be produced (which it doesn't) and succeeded in locking up my emulator.
TBH, the whole concept of a tool number seems to be completely wackadoo in todays world, but it was how Apple built it.