From: Thimble Smith Date: April 22 1999 11:25pm Subject: Re: mysql / CGI programming / gcc commandline List-Archive: http://lists.mysql.com/mysql/2272 Message-Id: <19990422162542.O15609@desert.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 1) Go to the mailing list archive. http://www.progressive-comp.com/Lists/?l=mysql&r=1&w=2#mysql 2) Find the search box at the top of the page. Type in "undefined reference to mysql_init". 3) Read. The thread "[MySQL]" might be particularly useful. Note: this is what you should do each time you have a question that you can't answer by reading the manual. A URL for the manual is given at the bottom of every posting to this list. Tim On Thu, Apr 22, 1999 at 04:13:39PM -0700, James Chelin wrote: > 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#