User forums > General (but related to Code::Blocks)
Problem to use MySQL 6.1 C Connector with C::B
(1/1)
Felipe_Maia:
hello,
I try make a connection with MySql DB , but when i try run this::
--- Code: ---
#include <stdio.h>
#include <stdlib.h>
#include <mysql.h>
#include <my_global.h>
int main()
{
printf("My SQL Cliet Version:: %s\n", mysql_get_client_info());
return 0;
}
--- End code ---
Link Libraries::
mysqlclient.lib
libmysql.lib
Other linker options
`mysql_config --libs`
Serach Directories - >Compiler
\MySQL\MySQL Connector C 6.1\include
\Microsoft Platform SDK\Include\crt
Compiler Settings - > Other Options
`mysql_config --cflags`
When i compile withou Microsoft SDK , i get a error "crtdbg.h no such File or Directory" , after that i install and link the reference , but after that i start to get a error when i compile, is a error in stdlib.h " expected ',' or ';' before '__abs64'.
thanks..
BlueHazzard:
1) This is not a C::B related question
2) To direct you: http://stackoverflow.com/a/3041260
greetings
Navigation
[0] Message Index
Go to full version