From b51c9367fc28fbcf604050229007b3342cdeb42f Mon Sep 17 00:00:00 2001 From: Remco Stoutjesdijk Date: Sun, 23 Aug 2020 18:09:34 +0200 Subject: [PATCH] Swolisten: Moving the library argument to the end of the command line #718 --- UsingSWO | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/UsingSWO b/UsingSWO index 36517ead..a9d8ee16 100644 --- a/UsingSWO +++ b/UsingSWO @@ -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.