LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linking libusb-1.0 to mycfile.c fails (https://www.linuxquestions.org/questions/linux-software-2/linking-libusb-1-0-to-mycfile-c-fails-4175532081/)

pan64 02-05-2015 12:12 AM

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.


All times are GMT -5. The time now is 05:30 AM.