News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem to use MySQL 6.1 C Connector with C::B

Started by Felipe_Maia, January 07, 2014, 12:36:26 PM

Previous topic - Next topic

Felipe_Maia


  hello,


  I try make a connection with MySql DB , but when i try run this::



#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;
}



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