From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=UAZlJ2nbW1UtXJ5RLDWPpH7H8E6FT3GlZqQA2fTmbO0=; b=MEV0v6KUTJ4apVmspfW/xsssIDvAdnASPsaGy+/WOV/rstHVidWgjsMI3HaMMYW+wG ES3wvmyeZDbwDLhWhqAm8Lg5JUg7tVjVQt+hcYAF5VEBBgH5MYZyNM3squayP8dghhbb lJa2Sk3CSWAfFK0YDEexPZagCJ96t91BHNz7Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; b=JMq7raNRa7/Vr2TFLzIbQIaBpa+w51Z31zB8HAYw0dNEEeMG+Fpu8B2/1cZLFUcGuz 9OwpcOpUbUsHuOvxtZHgfgyqnfH1PbmWDzR++J92Kcs8gRCq5X736/Qw3ipjHcMYCrhE pTXGTPVTqU8NKwmoN0580NFwQFv74h7OZsYZs= Message-ID: <491F8D48.50806@gmail.com> Date: Sun, 16 Nov 2008 12:02:32 +0900 From: Occisor User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: ALT Linux Community general discussions References: <780029c20810262323v1246d794tb63eae2d012583da@mail.gmail.com> <4906044B.10704@rambler.ru> <49060660.5030307@rambler.ru> <200810272130.49380.haw@inbox.ru> <49060CDB.6000107@rambler.ru> <491C6A3C.3030906@rambler.ru> In-Reply-To: <491C6A3C.3030906@rambler.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Comm] =?utf-8?b?0JHQuNC70LDQudC9IFVTQiDQvNC+0LTQtdC8?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2008 03:01:51 -0000 Archived-At: List-Archive: List-Post: 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 Что делаю не так?