From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42A84453.8010807@geeksforless.net> Date: Thu, 09 Jun 2005 16:29:55 +0300 From: Eugene Brusilovsky User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7.2) Gecko/20040808 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: community@altlinux.org Subject: Re: [Comm] Compiling C + MySQL References: <20050609132816.F2AFF24093C5@lab111.protei> In-Reply-To: <20050609132816.F2AFF24093C5@lab111.protei> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at geeksforless.net Cc: X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 13:29:58 -0000 Archived-At: List-Archive: List-Post: Макс пишет: >Надо юзать не mysqlclient. > >-----Original Message----- >From: community-bounces@altlinux.org [mailto:community-bounces@altlinux.org] >On Behalf Of Eugene Brusilovsky >Sent: Thursday, June 09, 2005 5:24 PM >To: community@altlinux.org >Subject: Re: [Comm] Compiling C + MySQL > >Alexey Morsov пишет: > > > >>Eugene Brusilovsky wrote: >> >> >> >>>#include "mysql.h" >>> >>> >>может лучше :) >> >> >> >>>MYSQL link; >>> >>>int main() >>>{ >>> >>> >>mysql_init(&link); >> >> >> >>> if (!mysql_connect(&link, "localhost", "user", "temp111")) >>> { >>> printf("Connection error\n"); >>> } else >>> { >>> mysql_close(&link); >>> } >>> return 1; >>>} >>> >>>Пытаюсь скомпилить при помощи: gcc -I/usr/include/mysql >>>-L/usr/lib/mysql database.c -o database -lm -lmysqlclient >>> >>> >>> >Не помогло. Всё то же самое. >_______________________________________________ >Community mailing list >Community@altlinux.ru >https://lists.altlinux.ru/mailman/listinfo/community > > >_______________________________________________ >Community mailing list >Community@altlinux.ru >https://lists.altlinux.ru/mailman/listinfo/community > > > А что тогда?