[fpc-devel] Test: compiling packages

Willibald Krenn Willibald.Krenn at gmx.at
Tue Sep 21 00:30:14 CEST 2010


> - execute the following command:
> fpc -Us -Sg -Fiinc -Fix86_64 -Fiwin -Fiwin64 -FUunits\x86_64-win64
> win64\system.pp

Had to change it to

fpc -Us -Sg -Firtl\inc -Firtl\x86_64 -Firtl\win -Firtl\win64 
-FUunits\x86_64-win64 rtl\win64\system.pp

but this worked, as expected.

> Now you should have a system.ppu and a system.o in
> "c:\test\units\x86_64-win64". Now you create the rtl.ppk in "c:\test"
> and run the compiler using the following command:
> fpc -Fuunits\x86_64-win64 rtl.ppk

This did not work:

....> type rtl.ppk
package rtl;

contains
   system;

end.

....> fpc -Fuunits\x86_64-win64 rtl.ppk
unknown: 12
unknown: 12
rtl.ppk(7) Error: Multiple defined symbol _DLLMainCRTStartup
rtl.ppk(7) Error: Undefined symbol: PASCALMAIN
rtl.ppk(7) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted


> If you have problems regarding this procedure, please don't hesitate to
> ask (but I might not be able to answer till Thursday, cause I'm on a
> developer conference).

Thanks! Well, I guess I have to get a debug-build of fpc first and then 
I'll probably have to investigate where the "unknown: 12" is coming 
from, etc..

Anyway, thanks for your help on this!

Cheers,
  Willi



More information about the fpc-devel mailing list