Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Ubuntu Help
Reload this Page gcc error while compiling my server.c with MySQL
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Ubuntu Help Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Reply
 
Thread Tools Display Modes
Old 06-17-2008   #1 (permalink)
linuxfan84
Just Joined!
 
Join Date: Jun 2008
Posts: 1
gcc error while compiling my server.c with MySQL

Hello friends,
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.

user@user-laptop:~/Desktop/project$ gcc –I./mysql/include –L./mysql/lib server.c –o server –lmysqlclient
gcc: –I./mysql/include: No such file or directory
gcc: –L./mysql/lib: No such file or directory
gcc: –o: No such file or directory
gcc: server: No such file or directory
gcc: –lmysqlclient: No such file or directory
server.c:13:19: error: mysql.h: No such file or directory
server.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
server.c: In function ‘main’:
server.c:47: error: ‘MYSQL’ undeclared (first use in this function)
server.c:47: error: (Each undeclared identifier is reported only once
server.c:47: error: for each function it appears in.)
server.c:47: error: ‘mysql’ undeclared (first use in this function)
server.c:48: error: ‘MYSQL_RES’ undeclared (first use in this function)
server.c:48: error: ‘result’ undeclared (first use in this function)
server.c:142: error: ‘MYSQL_ROW’ undeclared (first use in this function)
server.c:142: error: expected ‘;’ before ‘row’
server.c:143: error: ‘row’ undeclared (first use in this function)

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.
linuxfan84 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:34 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0