OS:windows 8,compiler:g++,mysql version:5.6
//bookshop.cpp
#include <my_global.h>
int main() {
return 0;
}
//bookshop.cpp
//Makefile
CC = g++
LIBS = -L"C:\Program Files\MySQL\MySQL Server 5.6\lib\" -lmysqlclient
INCLUDES = -I"C:\Program Files\MySQL\MySQL Server 5.6\include"
all:bookshop
bookshop: bookshop.cpp
$(CC) -fpermissive -o bookshop $(INCLUDES) bookshop.cpp $(LIBS)
//Makefile
error:
In file included from C:\Program Files\MySQL\MySQL Server 5.6\include/my_global.h:68:0, from bookshop.cpp:1:
C:\Program Files\MySQL\MySQL Server 5.6\include/my_config.h:506:16: error: multiple
types in one declaration "#define mode_t int"