On Thu, Feb 14, 2013 at 12:09 PM, Ori Idan <[email protected]> wrote:
> I thought so and tried the command gcc -lftdi1 -o i2csend i2csend.c > > I got the following error: > /usr/bin/ld: cannot find -lftdi1 > collect2: error: ld returned 1 exit status > > -- > Ori Idan > > > On Thu, Feb 14, 2013 at 12:07 PM, Thomas Jarosch < > [email protected]> wrote: > >> On Thursday, 14. February 2013 11:55:23 Ori Idan wrote: >> > I have tried an old command line: >> > gcc -lftdi -o i2csend i2csend.c >> > >> > I got many errors on all ftdi_xxx functions not found. >> > What have changed? >> >> if you are using libftdi 1.x, you need to specify "-lftdi1". >> >> Thomas >> >> >> Replying to myself: I tried: gcc -o i2csend i2csend.c -lftdi Just changing -lftdi to be at the end of the command line and it workd. I still wonder why? My work is at: https://github.com/OriIdan/ftdi-i2c -- Ori Idan -- >> libftdi - see http://www.intra2net.com/en/developer/libftdi for details. >> To unsubscribe send a mail to [email protected] >> >> > -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
