From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42A84228.2000302@ricom.ru> Date: Thu, 09 Jun 2005 17:20:40 +0400 From: Alexey Morsov User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: community@altlinux.org Subject: Re: [Comm] Compiling C + MySQL References: <42A84020.9000002@geeksforless.net> In-Reply-To: <42A84020.9000002@geeksforless.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at ricom.ru 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:20:44 -0000 Archived-At: List-Archive: List-Post: 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 > -- Всего наилучшего, Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ" Алексей Морсов ICQ: 196766290 Jabber: Samurai@jabber.pibhe.com http://www.ricom.ru http://www.fondmarket.ru