From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42A842FF.8070702@geeksforless.net> Date: Thu, 09 Jun 2005 16:24:15 +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: <42A84020.9000002@geeksforless.net> <42A84228.2000302@ricom.ru> In-Reply-To: <42A84228.2000302@ricom.ru> 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:24:18 -0000 Archived-At: List-Archive: List-Post: 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 >> > Не помогло. Всё то же самое.