usb.cc compile error..
Status: Planning
Brought to you by:
lyonel
When compiling version A.01.06of lshw, using
gcc-c++-2.96-113, I had problems with the usb.cc
module.. It was missing the stdio.h include, thus
causing the following error..
usb.cc: In function `string BCDversion (short unsigned
int)':
usb.cc:216: `snprintf' undeclared (first use this function)
usb.cc:216: (Each undeclared identifier is reported
only once for each function it appears in.)
make: *** [usb.o] Error 1
I added the following include and the compilation completed
normally..
#include <stdio.h>
Thanks for a great product for us EX-hpux users.. ;-)
Logged In: YES
user_id=1020663
I had the same problem with gcc 2.96, and, indeed, the
addition of the include to usb.cc corrected it. Now, if
only the correction is made to the official release, I think
this bug should be resolved.
BTW, thanks for this great tool!!