Swolisten: Moving the library argument to the end of the command line #718

This commit is contained in:
Remco Stoutjesdijk 2020-08-23 18:09:34 +02:00 committed by UweBonnes
parent af3480e523
commit b51c9367fc
1 changed files with 5 additions and 4 deletions

View File

@ -109,12 +109,13 @@ Note that swolisten can be used with either BMP firmware, or with a
conventional TTL serial dongle. See at the bottom of this file for
information on how to use a dongle.
The command line to build the swolisten tool is;
The command line to build the swolisten tool may look like:
gcc -I /usr/local/include/libusb-1.0 -L /usr/local/lib -lusb-1.0 swolisten.c -o swolisten
E.g. for Ubuntu
gcc -I /usr/local/include/libusb-1.0 -L /usr/local/lib swolisten.c -o swolisten -lusb-1.0
For Opensuse:
gcc -I /usr/include/libusb-1.0 -lusb-1.0 swolisten.c swolisten -std=gnu99 -g -Og
E.g. For Opensuse:
gcc -I /usr/include/libusb-1.0 swolisten.c swolisten -std=gnu99 -g -Og -lusb-1.0
...you will obviously need to change the paths to your libusb files.