Hello Folks,
I think this is a very nooby question but i cant figure this out. Just for fun i want to acces USB interfaces on a ubuntu system. now ik have installed USBLib-dev it is located on:
Code:
/usr/src/linux-headers-2.6.28-15-generic/include/linux/usb.h
now i would like to use USB.h in one of my C++ applications. So i thought
Code:
#include <iostream>
#include <usb.h> //also tried #include "usb.h"
int main()
{
usb_init();
return 0;
}
This gives me this error:
Code:
/media/DATA/Jelte/Programming/C++/USBLib-dev TEST/USBFindBusses/main.cpp|6|undefined reference to `usb_init'
do you people see what i did wrong? is the including not correct or..?
As IDE i use Code::blocks with gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Thanks for your help.
Jelte,