From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: "=?koi8-r?B?7cHL0w==?=" To: Subject: RE: [Comm] Compiling C + MySQL Date: Thu, 9 Jun 2005 17:27:06 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <42A842FF.8070702@geeksforless.net> thread-index: AcVs9pi5sPEl/Q81QjiFuSIXy1KabAAACKzw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Message-Id: <20050609132816.F2AFF24093C5@lab111.protei> X-Bogosity: No, tests=bogofilter, spamicity=0.453307, version=0.92.0 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:28:21 -0000 Archived-At: List-Archive: List-Post: =EE=C1=C4=CF =C0=DA=C1=D4=D8 =CE=C5 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 =D0=C9=DB=C5=D4: > > Eugene Brusilovsky wrote: > >> #include "mysql.h" > > =CD=CF=D6=C5=D4 =CC=D5=DE=DB=C5 :) > >> >> MYSQL link; >> >> int main() >> { > > mysql_init(&link); > >> if (!mysql_connect(&link, "localhost", "user", "temp111")) >> { >> printf("Connection error\n"); >> } else >> { >> mysql_close(&link); >> } >> return 1; >> } >> >> =F0=D9=D4=C1=C0=D3=D8 =D3=CB=CF=CD=D0=C9=CC=C9=D4=D8 =D0=D2=C9 = =D0=CF=CD=CF=DD=C9: gcc -I/usr/include/mysql=20 >> -L/usr/lib/mysql database.c -o database -lm -lmysqlclient >> > =EE=C5 =D0=CF=CD=CF=C7=CC=CF. =F7=D3=A3 =D4=CF =D6=C5 =D3=C1=CD=CF=C5. _______________________________________________ Community mailing list Community@altlinux.ru https://lists.altlinux.ru/mailman/listinfo/community