Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-12

Re: [Fwd: Re: [Fwd: Re: Need help on LinkLib]]

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andre Wohnig
juergen wrote 38 lines
-------- Original Message -------- From: Michael Van Canneyt Subject: Re: [Fwd: Re: [fpc-pascal]Need help on LinkLib] To: On Tue, 12 Dec 2000, Andre Wohnig wrote: > > -------- Original Message -------- > > Von: Peter Vreman > > Betrifft: Re: [fpc-pascal]Need help on LinkLib > > An: > > > > > 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) > > > > No it was not just a typo. I forgott the "$". But if i add this, i get > the > following error (error over error but i don´ t give up): > "sh:/root/arbeit/gpib2/test: No such file or directory" -> contents of > stderr > > from test. > What could this be? What is test ? is this a shell script ?

No, its my program (it´s called test.pas).

Andre´

Thiesen | André Wohnig hardware- & software- design GmbH | Im Tiegel 9 | www.thiesen.com 36367 Wartenberg | tel. +49 (0) 6641 979-142 fax -299

Reply by email

Michael Van Canneyt
to Andre Wohnig
Andre Wohnig wrote 42 lines
juergen wrote: > -------- Original Message -------- > From: Michael Van Canneyt > Subject: Re: [Fwd: Re: [fpc-pascal]Need help on LinkLib] > To: > > On Tue, 12 Dec 2000, Andre Wohnig wrote: > > > > -------- Original Message -------- > > > Von: Peter Vreman > > > Betrifft: Re: [fpc-pascal]Need help on LinkLib > > > An: > > > > > > > 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) > > > > > > > No it was not just a typo. I forgott the "$". But if i add this, i get > > the > > following error (error over error but i don� t give up): > > "sh:/root/arbeit/gpib2/test: No such file or directory" -> contents of > > 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 ?

Michael.

Reply by email