09:52:18 **** Incremental Build of configuration Debug for project Database ****
Info: Internal Builder is used for build
g++ -std=c++0x "-ID:\\Downloads\\boost_1_71_0_latest" "-IC:\\Program Files\\MySQL\\Connector C++ 8.0\\include\\jdbc" "-IC:\\Program Files\\MySQL\\MySQL Server 8.0\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "..\\main.cpp"
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/warning.h:40:0,
from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/connection.h:39,
from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:36,
from ..\main.cpp:15:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/sqlstring.h:46:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/sqlstring.h:47:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4251)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/sqlstring.h:51:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/connection.h:39:0,
from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:36,
from ..\main.cpp:15:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/warning.h:46:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning (disable : 4290)
In file included from ..\main.cpp:15:0:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:182:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:183:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4251)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:187:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:193:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:194:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4251)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:200:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/resultset.h:36:0,
from ..\main.cpp:19:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:101:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:62:15: note: previous declaration as 'typedef int int32_t'
typedef int int32_t;
^~~~~~~
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/resultset.h:36:0,
from ..\main.cpp:19:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:105:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^~~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:63:19: note: previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^~~~~~~~
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/statement.h:36:0,
from ..\main.cpp:20:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:101:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:62:15: note: previous declaration as 'typedef int int32_t'
typedef int int32_t;
^~~~~~~
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/statement.h:36:0,
from ..\main.cpp:20:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:105:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^~~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:63:19: note: previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^~~~~~~~
09:52:21 Build Failed. 4 errors, 10 warnings. (took 2s.739ms)
Hi, I am unable to run and compile MySQL connector on Eclipse Window and got the above error messages. I installed MySQL connector and server - both version 8.0.25 and added "C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc" and "C:\Program Files\MySQL\MySQL Server 8.0\include" onto the compile include paths and "C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc", "C:\Program Files\MySQL\MySQL Server 8.0\lib" onto the MinGW C++ Linker.
Any idea how to resolve it? Any help will be greatly appreciated.
Info: Internal Builder is used for build
g++ -std=c++0x "-ID:\\Downloads\\boost_1_71_0_latest" "-IC:\\Program Files\\MySQL\\Connector C++ 8.0\\include\\jdbc" "-IC:\\Program Files\\MySQL\\MySQL Server 8.0\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o main.o "..\\main.cpp"
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/warning.h:40:0,
from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/connection.h:39,
from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:36,
from ..\main.cpp:15:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/sqlstring.h:46:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/sqlstring.h:47:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4251)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/sqlstring.h:51:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/connection.h:39:0,
from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:36,
from ..\main.cpp:15:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/warning.h:46:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning (disable : 4290)
In file included from ..\main.cpp:15:0:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:182:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:183:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4251)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:187:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:193:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(push)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:194:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(disable: 4251)
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/mysql_connection.h:200:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
#pragma warning(pop)
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/resultset.h:36:0,
from ..\main.cpp:19:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:101:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:62:15: note: previous declaration as 'typedef int int32_t'
typedef int int32_t;
^~~~~~~
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/resultset.h:36:0,
from ..\main.cpp:19:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:105:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^~~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:63:19: note: previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^~~~~~~~
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/statement.h:36:0,
from ..\main.cpp:20:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:101:19: error: conflicting declaration 'typedef long int int32_t'
typedef __int32 int32_t;
^~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:62:15: note: previous declaration as 'typedef int int32_t'
typedef int int32_t;
^~~~~~~
In file included from C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/statement.h:36:0,
from ..\main.cpp:20:
C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc/cppconn/config.h:105:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
typedef unsigned __int32 uint32_t;
^~~~~~~~
In file included from d:\mingw\lib\gcc\mingw32\6.3.0\include\stdint.h:9:0,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdint:41,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\char_traits.h:420,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:40,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from d:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from ..\main.cpp:8:
d:\mingw\include\stdint.h:63:19: note: previous declaration as 'typedef unsigned int uint32_t'
typedef unsigned uint32_t;
^~~~~~~~
09:52:21 Build Failed. 4 errors, 10 warnings. (took 2s.739ms)
Hi, I am unable to run and compile MySQL connector on Eclipse Window and got the above error messages. I installed MySQL connector and server - both version 8.0.25 and added "C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc" and "C:\Program Files\MySQL\MySQL Server 8.0\include" onto the compile include paths and "C:\Program Files\MySQL\Connector C++ 8.0\include\jdbc", "C:\Program Files\MySQL\MySQL Server 8.0\lib" onto the MinGW C++ Linker.
Any idea how to resolve it? Any help will be greatly appreciated.