From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32130 invoked by alias); 17 Jun 2008 20:21:27 -0000 Received: (qmail 32122 invoked by uid 22791); 17 Jun 2008 20:21:27 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jun 2008 20:21:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K8hfo-00051L-GT for gcc-bugs@gcc.gnu.org; Tue, 17 Jun 2008 13:21:00 -0700 Message-ID: <17936404.post@talk.nabble.com> Date: Tue, 17 Jun 2008 20:21:00 -0000 From: linuxfan84 To: gcc-bugs@gcc.gnu.org Subject: GCC error while compiling my server.c program using MySQL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: aanshik@gmail.com X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg01049.txt.bz2 Hello friends,=20 I had installed Ubuntu hardy Heron 8.04 on my laptop using Wubi to compile some server.c and client.c projects for my socket programming project on Linux OS.I was able to view the desired results with the following commands.It's only that when I re-installed Ubuntu and MySQL client-server,I'm getting the following gcc compiler errors that I didn't get before.Please help me out.=20 user@user-laptop:~/Desktop/project$ gcc -I./mysql/include -L./mysql/lib server.c -o server lmysqlclient=20 gcc: -I./mysql/include: No such file or directory=20 gcc: -L./mysql/lib: No such file or directory=20 gcc: -o: No such file or directory=20 gcc: server: No such file or directory=20 gcc: lmysqlclient: No such file or directory=20 server.c:13:19: error: mysql.h: No such file or directory=20 server.c:21: error: expected ?? ?? ?? =EB=A9=B2sm?or ?_attribute__?before ?= ?token=20 server.c: In function =EB=AA=80ain?=20 server.c:47: error: =EB=A9=9DYSQL?undeclared (first use in this function)=20 server.c:47: error: (Each undeclared identifier is reported only once=20 server.c:47: error: for each function it appears in.)=20 server.c:47: error: =EB=AA=80ysql?undeclared (first use in this function)=20 server.c:48: error: =EB=A9=9DYSQL_RES?undeclared (first use in this functio= n)=20 server.c:48: error: =EB=AA=89esult?undeclared (first use in this function)= =20 server.c:142: error: =EB=A9=9DYSQL_ROW?undeclared (first use in this functi= on)=20 server.c:142: error: expected ??before =EB=AA=89ow? server.c:143: error: =EB=AA=89ow?undeclared (first use in this function)=20 Please note that I've already run the command "sudo apt-get build-essentail" The above command to compile mysql server worked like a breeze before but now it's giving me the above errors.I'm really concerned about the gcc errors as remaining errors depend on that.Please help me out guys.Thanks.=20 --=20 View this message in context: http://www.nabble.com/GCC-error-while-compili= ng-my-server.c-program-using-MySQL-tp17936404p17936404.html Sent from the gcc - bugs mailing list archive at Nabble.com.