Mysql Connector C ++ 1.1.9 conflicting declaration "typedef long int int32_t"

0

After all the morning investigating, I still do not solve this problem. I am trying to link mysql and codeblocks 16.1 and a type declaration error occurs, the declaration is repeated in 2 files .h

in config.h (library that comes with Mysql connector) I have

#ifdef HAVE_MS_INT32
typedef __int32         int32_t;
#endif

#ifdef HAVE_MS_UINT32
typedef unsigned __int32    uint32_t;
#endif

Then in stdint.h I have:

typedef int  int32_t;
typedef unsigned   uint32_t;

Try to eliminate redundancy in the statement by leaving it as a comment in one of the header, but still indicate the error. I already have all the libraries linked to the compiler, also add the address of the .lib. I deleted the area where it is included and still I was still detecting the problem. I do not know what else to try ...

    
asked by Carlos Obregon 03.10.2017 в 23:16
source

0 answers