Have you tried my MySQL C API Site ? I have posted some C API examples here. http://www.geocities.com/jahan.geo
Aftab Jahan Subear
Subedar Technologies
Subedar Baag
Bibir Bagicha #1
North Jatrabari
Dhaka 1204
Bangladesh
http://www.DhakaStockExchangeGame.com
Tel: +880-2-7519050
/*
Get customized T-Shirts with logo for your IT company for 12 units @ US$14 ~ US$16.
Order quantity must be atleast USD$5000++.
IT company to IT company.
*/
premal mishra wrote:
I'm using MySQL version 4.0.20a on win98. Compiler is Bloodshed Dev-C++ version 4.
My program compiles and links but gives a page fault error on running. I'm linking the '\mysql\lib\opt\mysqlclient.lib' file.
Linker gives the warning >> ignoring duplicate section '.text'
CODE: #include <config-win.h> #include <mysql.h> #include <stdio.h>
int main(int argc, char *argv[]) { MYSQL mysql; MYSQL *connection; connection= mysql_real_connect(&mysql, "localhost", "root", "premal", "test", 0, NULL, 0);
return 0;
}
Regards
Premal.
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]