[PARPORT] Unable to link

thai hoa vo (vothaihoa@yahoo.com)
Thu, 17 Feb 2000 19:11:37 -0800 (PST)

I have posted this question, but the answer was not
quite clear to me. Could anyone explains me this
problem again.
I wrote a very simple program to test if I can use the
functions from parport.

#include <stdio.h>
#include <linux/parport.h>
void main(void) {
  struct parport * myport;
  myport = parport_enumerate();

Then I try to compile the program

> gcc test_parport.c

And the result is

/tmp/ccAwtATt.o: In function `main':
/tmp/ccAwtATt.o(.text+0x7): undefined reference to
collect2: ld returned 1 exit status

I did try "insmod /lib/modules/2.2.12/parport.o", but
that did not help.

I really appreciate any help.

Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --

This archive was generated by hypermail 2.0b3 on Thu 17 Feb 2000 - 22:14:23 EST