List:General Discussion« Previous MessageNext Message »
From:James Chelin Date:April 22 1999 11:13pm
Subject:mysql / CGI programming / gcc commandline
View as plain text  
	

I am trying to use a cgi program written in C to access the mysql server.
I have started by using three functions to test it out, however I cannot
seem to compile it correctly.  Someone please help me out on what kind of
command line I need.  Here is what it looks like now..  BTW, I am using
Slackware Linux 3.5.0 with Linux 2.0.35.  How can I Make it work?  I am
including mysql.h too.  I just dont know the library commandline for gcc
and or which libs to use.  mysqlclient right?

flipper:/var/lib/httpd/cgi-bin# gcc order.c
/tmp/cca270441.o: In function `getformdata':
/tmp/cca270441.o(.text+0x75): undefined reference to `mysql_init'
/tmp/cca270441.o(.text+0x9e): undefined reference to `mysql_real_connect'
/tmp/cca270441.o(.text+0x85d): undefined reference to `mysql_close'
collect2: ld returned 1 exit status
flipper:/var/lib/httpd/cgi-bin# 


Any help would be much appreciated.

Thanks,

James

Thread
mysql / CGI programming / gcc commandlineJames Chelin23 Apr
  • Re: mysql / CGI programming / gcc commandlineThimble Smith23 Apr