Adam Naumowicz wrote:
Hello, I hava a primitive question but please don't be mad at me (you know, I don't know gpc at all). How to prepare a unit file for using in normal USES declaration. I did it how I used to with BP, but all I got was error message from GPC that 'undefined refference' to function from my unit occured.
You do it just like you would in BP. For examples, you can look at the included units in the "units" directory.
If you still get errors with your code, please post the relevant code and the exact errors messages you get.
Oh yes, and in case you're using the (very old) version 2.0, I'd recommend to upgrade to a recent alpha or beta version (already much more stable than 2.0), available from (though I think units did also work in 2.0):
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/alpha/ ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/
Frank