glad to help you.
if you really want to say thanks just press YES. Also if your problem is now solved please mark the thread as solved.
And some comments:
-Wall is used to force the compiler to give more warnings about possible problems, but will not influence the result. You need to take care about those warnings.
use:
Code:
#include <stdio.h>
#include "libusb-1.0/libusb.h"
the first one is a system include, the second is not, so that's why you need to use <> and "".
The order of the options sometimes important, so in general move -L<path> -l<lib> at the end of the command.