miller@otago.ac.nz wrote:
I have some statistical programs that I would like to release under GPL. They were originally written in Borland Pascal and Speed Pascal (the latter is a borland-like pascal for OS/2), and all the code compiles and runs fine using those two compilers. Now I am trying to get everything to compile and run under gpc, so that the code will be useful to more people. It looks like I'll have a lot of questions along the way, and I'd appreciate any help that can be provided.
I'm using a version of gpc that I installed as a binary from the file gpc-19990118_i386-pc-emx0_9d.zip
I can compile and run little test programs that use no units, or that use only type definitions from units, but I get "undefined symbol" messages if the main program refers to any variables or procedures defined in the interface part of the unit.
Try compiling with `--automake' which also compiles units automatically, so don't have to compile them with `-c' before.
If this doesn't work (automake is a bit buggy under Dos), try `--autobuild' instead.
Frank