[PARPORT] ppdev compilation problem

From: Palkó Zoltán (zotya@ivn.hu)
Date: Thu Jan 17 2002 - 17:02:11 EST

  • Next message: Tim Waugh: "Re: [PARPORT] ppdev compilation problem"


    I tried to use the ppdev to drive my home-built device connected to my
    paralell port.
    First I tried to make a skeleton program, wich does nothing, but I got
    compilation errors.

    Here is the code part:

    int pportinit(void)
        int ddir;
        if (fd > 0)
            if (ioctl(fd,PPEXCL))
                return (-1);
            if (ioctl(fd,PPCLAIM))

    And the error : zotya@home:~/parportdrv$ gcc parportdrv.c /tmp/ccn48AJg.o: In function `pportinit': /tmp/ccn48AJg.o(.text+0x3d): undefined reference to `_IO' /tmp/ccn48AJg.o(.text+0x70): undefined reference to `_IO' /tmp/ccn48AJg.o: In function `main': /tmp/ccn48AJg.o(.text+0xde): undefined reference to `_IO' collect2: ld returned 1 exit status

    It seems a library linking problem, but I only found _IO references into libc. What I missed?

    -- Zotya

    -- 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 2b29 : Thu Jan 17 2002 - 17:14:01 EST