Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

ERROR: conflict declaration (1 reply)

$
0
0
Hello, im installed :
- Netbeans 6.9.1
- MinGW
- MySQL Connector C++ 1.1.0

i put in the configuration of NetBeans (project properties)
- C++ Compiler: Include directories -> ../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include
- Linker: Addional library directories -> ../../Program Files/MySQL/MySQL Connector C++ 1.1.0/lib/opt ,in Libraries -> mysqlcppconn-static mysqlcppconn and in addional options -static

when i run this app, the app not build, this is the code output:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/CPP/test1'
rm -f -r build/Debug
rm -f dist/Debug/MinGW-Windows/test1.exe
make[1]: Leaving directory `/c/CPP/test1'

CLEAN SUCCESSFUL (total time: 1s)
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/CPP/test1'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/test1.exe
make[2]: Entering directory `/c/CPP/test1'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/main.o.d
g++.exe -c -g -I../../Program\ Files/MySQL/MySQL\ Connector\ C++\ 1.1.0/include -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
from main.cpp:20:
In file included from ../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/resultset.h:28:0,
../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/config.h:60:18: error: conflicting declaration 'typedef char int8_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:27:21: error: 'int8_t' has a previous declaration as 'typedef signed char int8_t'
../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/config.h:75:19: error: conflicting declaration 'typedef long int int32_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:31:14: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/config.h:79:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:32:20: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
from main.cpp:21:
In file included from ../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/statement.h:28:0,
../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/config.h:60:18: error: conflicting declaration 'typedef char int8_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:27:21: error: 'int8_t' has a previous declaration as 'typedef signed char int8_t'
../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/config.h:75:19: error: conflicting declaration 'typedef long int int32_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:31:14: error: 'int32_t' has a previous declaration as 'typedef int int32_t'
../../Program Files/MySQL/MySQL Connector C++ 1.1.0/include/cppconn/config.h:79:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:32:20: error: 'uint32_t' has a previous declaration as 'typedef unsigned int uint32_t'
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `/c/CPP/test1'
make[1]: Leaving directory `/c/CPP/test1'

BUILD FAILED (exit value 2, total time: 2s)

there are an error with declaration types
what can i do for fix this error?

thank you very much

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>