[fpc-pascal]Need help on LinkLib
Peter Vreman
peter at freepascal.org
Thu Dec 7 13:59:40 CET 2000
> Hi all!
>
> I want to Link a library to my program. I tried "{LinkLib gpiblib.a}".
> In this library it exists a function "int ibfind(char *name)". Therefor
> i insert the following line into my interface section in my unit:
> "Function ibfind(name : PChar) : LongInt; cdecl; external".
> I tried to use it with "nr := ibfind(device);" where nr is a LongInt
an> d
> device is PChar. When i try to run the program i get the following
> error: "Error: undefined reference to `ibfind' "
>
> What i am doing wrong? Could somebody help me?
It is {$Linklib gpiblib.a}. (Maybe it's only a typo in the email)
More information about the fpc-pascal
mailing list