Re: [Dev-C++] problem making cgi scripts
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Brian P. <br...@su...> - 2002-03-26 23:28:46
|
If you have mysql installed on your machine it should be in that directory somewhere (on my RedHat 7.2 installation it is /usr/include/mysql/mysql.h and on my Windows 2k box it is c:\mysql\include\mysql.h). You will need to tell Dev-C++ where this header file is under the compiler or project options. You will then need to give it the switch: -lmysqlclient under compiler or project options. If you are compiling from the command prompt you can type: gcc yourprogram.c -oyourprogram.cgi -L/[directory of mysql.h file] -lmysqlclient If you are going to work with cgi's you will of course need to make sure your mysql server is up and running and that it is willing to accept connection from you (usually localhost if the cgi is running on the same server as mysql). I hope that helps. b-- On Wed, 2002-03-27 at 00:23, Jonathan wrote: > Hi! I have a problem regarding my cgi script. when i compile my program using devcpp, an error message appear "mysql/mysql.h: no such file or directory" Where can i find this header file or where can i download it? please give me some tips... Thanks. > > My email addresses are jon...@ed... and jon...@ho... > > Thanks again and best regards. |