Nic Webb wrote:
The new problem is that I can't figure out how to compile a .pas file with gpc so that it doesn't require a main method (begin end.)... gpc -c file.pas will give me a happy object file that's easily imported into c, but when file.pas has a main method, it conflicts with the one in my main c program...
If you write a unit instead of a program, it will not have a `main' function.
When compiling a unit, please supply the `-c' option, so GPC will just produce an `.o' file and will not try to link.
Hope this helps,
Peter