Frank Heckenbach wrote:
Adriaan van Os wrote:
The included patch adds --compile-and-link to gp. I hope it's acceptable. It nicely creates a dynamic library on Mac OS X from a unit (while passing some extra needed options of course). Even better, the problem that I encountered this morning while trying this with gpc (.o files of compiled units weren't linked in) doesn't occur with gp !
Looks alright. Though you might want to add a note in the documentation that linking will usually fail, unless the module/unit or something it uses provides a `main' function, or you're creating a dynamic library which requires additional options.
OK, changed the patch to clarify the docs.
Regards,
Adriaan van Os