From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42A8490D.4000500@ricom.ru> Date: Thu, 09 Jun 2005 17:50:05 +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: <20050609132816.F2AFF24093C5@lab111.protei> <42A84453.8010807@geeksforless.net> In-Reply-To: <42A84453.8010807@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:50:07 -0000 Archived-At: List-Archive: List-Post: Eugene Brusilovsky wrote: > А что тогда? Врешь ты все дядя Федор ;) #include #include MYSQL link; int main(void) { mysql_init(&link); if (!mysql_real_connect(&link, "localhost", "***", "***", "***", 0, NULL, 0)) { printf ("Connect failed\n"); } mysql_close(&link); return(1); } morsov@mail ~/devel $ gcc test.c -o test -I/usr/include/mysql -L/usr/lib -lmysqlclient -lcrypt -lnsl -lm morsov@mail ~/devel $ ./test morsov@mail ~/devel $ echo $? 1 -- Всего наилучшего, Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ" Алексей Морсов ICQ: 196766290 Jabber: Samurai@jabber.pibhe.com http://www.ricom.ru http://www.fondmarket.ru