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 -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20001115 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net