At 11:41 AM 6/23/2004, you wrote:
Maybe the stuff worked because of other bugs in 1.0.6. The error messages
are not added for fun to let ppl review their code. Most are there because
the compiler can't continue or will generate wrong code. And the warnings
will only help in finding bugs.

I wasn't criticizing anyone, only trying to relay the whole story (and part of the story is that I was only reverting back to an older version because the newer one was going to require more effort then I had time for at that moment).


Add -vt to see where ppc386 looks for the files.

Alright, this proved to be very beneficial! It told me where fpc was looking for the units, but I can't for the life of me figure out WHY it's looking there. Here's what -vt gave me the first time around:


BEFORE
Compiler: c:\fpc\bin\win32\ppc386.exe
Using executable path: c:\fpc\bin\win32\
Using unit path: c:\source\
Using library path: c:\source\
Using object path: c:\source\
Unitsearch: syswin32.ppw
Unitsearch: \fpc\compiled\syswin32.ppw
Unitsearch: syswin32.pp
Unitsearch: syswin32.pas
Unitsearch: c:\source\syswin32.ppw
Unitsearch: c:\source\syswin32.pp
Unitsearch: c:\source\syswin32.pas
si.pas(56,1) Fatal: Can't find unit SYSWIN32

When I added "-Fuc:\fpc\units\win32\rtl" (with or without "-n" too) directly to my command line I got this:

AFTER
Compiler: c:\fpc\bin\win32\ppc386.exe
Using executable path: c:\fpc\bin\win32\
Using unit path: c:\source\
Using unit path: c:\fpc\units\win32\rtl\
Using library path: c:\source\
Using library path: c:\fpc\units\win32\rtl\
Using object path: c:\source\
Using object path: c:\fpc\units\win32\rtl\
Unitsearch: syswin32.ppw
Unitsearch: \fpc\compiled\syswin32.ppw
Unitsearch: syswin32.pp
Unitsearch: syswin32.pas
Unitsearch: c:\source\syswin32.ppw
Unitsearch: c:\source\syswin32.pp
Unitsearch: c:\source\syswin32.pas
Unitsearch: c:\fpc\units\win32\rtl\syswin32.ppw
PPU Loading c:\fpc\units\win32\rtl\syswin32.ppw
Unitsearch: c:\fpc\units\win32\rtl\syswin32.pp
Unitsearch: c:\fpc\units\win32\rtl\syswin32.pas
si.pas(56,1) Fatal: Can't find unit SYSWIN32

It seems to be looking in the correct spot now, and syswin32.ppw does indeed exist in the \fpc\units\win32\rtl directory, but it's still giving me the same error (and I'm assuming the message "PPU Loading" means it found the unit and loaded it, which would make it all the more confusing).

Regards,
Jim Wilson


_______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to