'int8_t' : redefinition error in config.h when trying to connect mysql cpp connector to visual studio 2010

扶醉桌前 提交于 2019-11-29 18:05:29

It looks like you should be able to work around this problem by setting the following macro definition in your project settings:

HAVE_INT8_T=1

or by /DHAVE_INT8_T=1 if you're using the command line.

Actually, you should probably set the following macro definitions in the project instead:

HAVE_STDINT_H=1
CPPCONN_DONT_TYPEDEF_MS_TYPES_TO_C99_TYPES=1

This should make the MySQL connector headers rely only on stdint.h for the C99 integer typenames instead of trying to define any of them on its own.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!