[fpc-pascal]Need help on LinkLib

Peter Vreman peter at freepascal.org
Tue Dec 12 12:28:18 CET 2000


> > > > No it was not just a typo. I forgott the "$". But if i add this, i
> > > > the
> > > > following error (error over error but i don´  t give up):
> > > > "sh:/root/arbeit/gpib2/test: No such file or directory" ->
> > > > stderr
> > > >
> > > > from test.
> > > > What could this be?
> > >
> > > What is test ? is this a shell script ?
> > 
> > No, its my program (it´s called test.pas).
> 
> But there is no program ?
> Does the file 'test' exist ?
> According to the above message, it does not exist; so the compiler
> failed to create an executable; can you send the output of the compiler ?
> 

It tried to link the library dynamicly and it isn't found when the executable is started,
thus resulting in the No such file or directory message.

You can try to rename the library to 'libgpi.a' and include {$linklib gpi}.

This is again the problem that linklib doesn't know if the specified library is shared or
static. Currently only shared library is supported and not the specification of a static
library with it's full name. Maybe that will work with {$l gpilib.a} only. Can't test it
myself.

Peter








More information about the fpc-pascal mailing list