public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* GCC error while compiling my server.c program using MySQL
@ 2008-06-17 20:21 linuxfan84
  0 siblings, 0 replies; only message in thread
From: linuxfan84 @ 2008-06-17 20:21 UTC (permalink / raw)
  To: gcc-bugs


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 ?? ?? ?? 멲sm?or ?_attribute__?before ??token 
server.c: In function 몀ain? 
server.c:47: error: 멝YSQL?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: 몀ysql?undeclared (first use in this function) 
server.c:48: error: 멝YSQL_RES?undeclared (first use in this function) 
server.c:48: error: 몉esult?undeclared (first use in this function) 
server.c:142: error: 멝YSQL_ROW?undeclared (first use in this function) 
server.c:142: error: expected ??before 몉ow?
server.c:143: error: 몉ow?undeclared (first use in this function) 

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. 

-- 
View this message in context: http://www.nabble.com/GCC-error-while-compiling-my-server.c-program-using-MySQL-tp17936404p17936404.html
Sent from the gcc - bugs mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-17 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-17 20:21 GCC error while compiling my server.c program using MySQL linuxfan84

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).