[fpc-pascal] How do I load external Pascal code?

Andrew Pennebaker andrew.pennebaker at gmail.com
Thu Oct 13 22:32:43 CEST 2011


Hmm. I tried rewriting begin/end as initialization/end, but scriptedmain.p
still won't compile to an executable. fpc just creates a .PPU file.

scriptedmain.p
https://github.com/mcandre/scriptedmain/tree/master/pascal

Cheers,

Andrew Pennebaker
www.yellosoft.us

On Thu, Oct 13, 2011 at 3:40 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:

>
> On 13 Oct 2011, at 21:37, Andrew Pennebaker wrote:
>
> > Is it possible to have a begin/end declaration in a unit a la C's main
> > function? I would like my units to double as libraries and executables.
>
> Yes: http://www.freepascal.org/docs-html/ref/refse72.html
>
>
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111013/6214ae18/attachment.html>


More information about the fpc-pascal mailing list