Larry Poorman wrote:
Several things:
- You use the install-gpc-binary script which is needed when installing a binary in a directory other than which it was compiled. This is not usually necessary under Linux (since we offer several binaries suited for different distributions and it's easy to compile GPC yourself under Linux), but it's not necessarily wrong...
- The "undefined reference to `main'" problem when calling gpc with `-v' and some more parameters (which are implicitly passed by the install-gpc-binary script here) will be fixed in the next release, but it's not very serious, anyway. As soon as you actually compile a program (i.e., give a file name), it does not occur.
- The equivalent of BP's tp[upw] files in GPC are object files (.o) plus interface files (.gpi) (and in the case of EP modules rather than BP units, also .gpm files). The object files are completely compatible with GCC and (at least under Unix systems) just about any other compiler and assembler, so they are linked with the default linker (ld) which is called automatically by GPC when compiling a program. (OTOH, if you just want to compile a unit alone, and not link it, you have to give the `-c' switch.) The .gpi and .gpm files are used by GPC only and are read when compiling a program, unit or module that uses another unit or module.
- When compiling a program that uses units, give the `--automake' switch to make GPC compile the units automatically.
- For regular expressions you need the rx library. If it isn't installed on your system, you can get it from ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/libs/
Frank