Hello,
I have a small test.pas, and I tried to compile it with the following Options:
fpc -dDLLIMPORT -dLANGDEU -dDLLDEBUG -n -Twin64 -FE. -Fu..\ -Fi..\inc -O3 -Os test.pas
under ..\ there are the .o bject, and .ppu, and the created .a rchive Files that FPC 3.2.2 created.
before, I created a Library (with the -Ur ) Compiler Flag on the Command Line Interface under the Windows 11 64-Bit Pro Console:
@echo on
fpc -dDLLEXPORT -dLANGDEU -dDLLDEBUG -n -B -Twin64 -FE. -Fu. -Ur -Sc -Sg -Sh -Sx -O3 -Os -CD RTLLib.pas
Take Attention to the Option's
-B (build all new) and:
-Ur (Generate release unit files - never automated recompile)
The Console Output for the first Command, give me these Lines:
T:\test\tst>fpc -dDLLIMPORT -dLANGDEU -dDLLDEBUG -n -Twin64 -FE. -Fu..\ -Fi..\inc -O3 -Os test.pas
PPU Loading T:\b\miniRTL\src\test\windows.ppu
PPU Source: windows.pas not available
Recompiling Windows, checksum changed for T:\test\system.ppu
windows.pas(9,1) Fatal: Can't find unit Windows used by system
Fatal: Compilation aborted
Error: C:\fpcupdeluxe\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
did I something wrong, or why FPC would re-compile the windows.pas ?