[Comm] Билайн USB модем

Occisor =?iso-8859-1?q?brutalfreak_=CE=C1_gmail=2Ecom?=
Вс Ноя 16 06:02:32 MSK 2008


Victor пишет:
> Victor пишет:
> Наконец дошли руки. Опробовал. Докладываю результаты, если кому интересно.
> Скомпилировал предложенную программу (дал ей имя ZTE2lin) и набросал 
> простенький скрипт:

Попробовал скомпилировать эту программу, выдаются следущие ошибки:
gcc -lusb -o UnBeeline UnBeeline.c
UnBeeline.c:1:17: error: usb.h: No such file or directory
UnBeeline.c:5: error: expected declaration specifiers or ‘...’ before 
‘usb_dev_handle’
UnBeeline.c:5: warning: ‘struct usb_device’ declared inside parameter list
UnBeeline.c:5: warning: its scope is only this definition or 
declaration, which is probably not what you want
UnBeeline.c: In function ‘OpenMyDevice’:
UnBeeline.c:10: error: ‘usb_dev_handle’ undeclared (first use in this 
function)
UnBeeline.c:10: error: (Each undeclared identifier is reported only once
UnBeeline.c:10: error: for each function it appears in.)
UnBeeline.c:10: error: ‘udev’ undeclared (first use in this function)
UnBeeline.c:19: error: ‘usb_busses’ undeclared (first use in this function)
UnBeeline.c:19: error: dereferencing pointer to incomplete type
UnBeeline.c:20: error: dereferencing pointer to incomplete type
UnBeeline.c:20: error: dereferencing pointer to incomplete type
UnBeeline.c:22: error: dereferencing pointer to incomplete type
UnBeeline.c:23: error: dereferencing pointer to incomplete type
UnBeeline.c:35: error: ‘udev_handle’ undeclared (first use in this function)
UnBeeline.c: In function ‘main’:
UnBeeline.c:46: error: ‘usb_dev_handle’ undeclared (first use in this 
function)
UnBeeline.c:46: error: ‘udev’ undeclared (first use in this function)
UnBeeline.c:53: warning: passing argument 1 of ‘OpenMyDevice’ from 
incompatible pointer type
UnBeeline.c:53: error: too many arguments to function ‘OpenMyDevice’
UnBeeline.c:57: warning: incompatible implicit declaration of built-in 
function ‘exit’
UnBeeline.c:71:2: warning: no newline at end of file
make: *** [all] Error 1

Что делаю не так?


Подробная информация о списке рассылки community