Title: RE: [linux-usb-devel] Including usb.h

Thanks but I was unfortunately working whith these options.
The problem comes from other files included in linux/usb.h when compiled with -D__KERNEL__

I am just doing tests for the moment to know how I can communicate with the device. I may not need to make an in kernel driver since the device will be used together with a specified program.

 
SniffUsb tells me that URB_FUNCTION_VENDOR_INTERFACE urbs are used...

Is there an other way to use the urb with Linux ?

If you have examples please send them to me ! ([EMAIL PROTECTED])

Thanks,
Eric HENRY

-----Message d'origine-----
De : Dunlap, Randy [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 6 mars 2001 18:23
À : '[EMAIL PROTECTED]'
Cc : '[EMAIL PROTECTED]'
Objet : RE: [linux-usb-devel] Including usb.h


Hi,

IF you are actually working on a kernel USB driver,
sure, you can (should) #include <usb.h>

How are you compiling?  What gcc options?
Maybe you are missing -O2
That's Optimization level 2.
Or maybe you are missing -D__KERNEL__
?

I wouldn't suggest using any library other than
linux/lib/lib.a .

~Randy_________________________________________
|NOTE: Any views presented here are mine alone|
|& may not represent the views of my employer.|
-----------------------------------------------

-----Original Message-----
From: Eric HENRY [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 9:10 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [linux-usb-devel] Including usb.h

>> What have I done wrong ? How to include usb.h ? or should I use an other
>> library ?
>>
>> I know that it is a stupid question but I really don't know where is the
>> problem...
>> I am nearly a newbie in usb and after having read the usb specs and the
>> programming guide I still need a little help to start.
>> So please help me ;-)
>I hope you do know that this header file is intended for in kernel drivers
>?
>
>       HTH
>               Oliver
Yes but where can I find these functions if I can't use this usb.h ?

Reply via email to