[fpc-pascal] Any command line interpreters for Free Pascal?

Tomas Hajny XHajT03 at hajny.biz
Sat Oct 15 10:19:29 CEST 2011


On Sat, October 15, 2011 00:43, Andrew Pennebaker wrote:
> Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In
> future versions, can fpc treat shebangs as comments so that instantfpc
> code
> could be compiled like normal Free Pascal code?
 .
 .

While I agree with others suggesting that you try to use FPC in a way
which it has not been designed for, there is probably a fairly simple
answer for your question (not requiring you to create special scripts or
makefiles, using sed, etc.). I have no experience with instantfpc myself,
but looking at the Wiki page, it seems that it may be used also just for
compilation of the source code if you always invoke instantfpc for
compilation (with the right parameters, especially --skip-run) instead of
using FPC directly. Again, not that I would consider it a very efficient
or reasonable approach, but if you need to do this for whatever reason, it
should apparently address your need.

Tomas





More information about the fpc-pascal mailing list