I am also having a problem trying to compile for Windows under Linux. I'm using a Debian (stable) based distro (32 bit) and installed Lazarus from the Deb (version 1.6/3.0). I have successfully set up the system by running
make all OS_TARGET=win32 CPU_TARGET=i386
from /usr/share/fpcsrc/3.0.0
At least, I assume it was successful because I didn't get any errors.
Next, I started a new "simple program" from Lazarus :
program Project1;
begin
writeln('Hello, world!');
end.
I then went to project/project options/compiler options/ and selected
Target OS = win32
Target CPU family = i386
Target Processor = default
After running "compile", I got the following error message:
Fatal: Can't find unit system used by Project1
Any suggestions?
By the way, this isn't a new installation of Lazarus ; I've been compiling for linux with it for some time with no problems, so the error is specific to the win32 target.
Edit: Don't know if this is relevant, but during the "make all" step there were several messages -
Warning : Unable to determine the libgcc path.