libmysqlcppconn gratis example descargar c++ mysql netbeans mysql-connector

c++ - gratis - mysql download



Error de compilaciĆ³n de MySQL Connect/C++ de 64 bits (2)

Estoy usando Netbeans y MacoSX e instalé el conector de 64 bits. En la construcción, recibo los siguientes errores:

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf /usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/inventory mkdir -p build/Debug/GNU-MacOSX rm -f build/Debug/GNU-MacOSX/addproduct.o.d g++ -c -g -Iinclude -Iinclude -MMD -MP -MF build/Debug/GNU-MacOSX/addproduct.o.d -o build/Debug/GNU-MacOSX/addproduct.o addproduct.cpp from addproduct.cpp:10: In file included from include/mysql_connection.h:30, include/cppconn/connection.h:31:29: warning: boost/variant.hpp: No such file or directory In file included from addproduct.cpp:10: include/mysql_connection.h:31:32: warning: boost/shared_ptr.hpp: No such file or directory from addproduct.cpp:10: In file included from include/mysql_connection.h:30, include/cppconn/connection.h:41: error: ''boost'' has not been declared include/cppconn/connection.h:41: error: expected initializer before ''<'' token include/cppconn/connection.h:43: error: ''ConnectPropertyVal'' was not declared in this scope include/cppconn/connection.h:43: error: template argument 2 is invalid include/cppconn/connection.h:43: error: template argument 4 is invalid include/cppconn/connection.h:43: error: invalid type in declaration before '';'' token In file included from addproduct.cpp:10: include/mysql_connection.h:75: error: ''ConnectPropertyVal'' is not a member of ''sql'' include/mysql_connection.h:75: error: ''ConnectPropertyVal'' is not a member of ''sql'' include/mysql_connection.h:75: error: template argument 2 is invalid include/mysql_connection.h:75: error: template argument 4 is invalid include/mysql_connection.h:157: error: ''ConnectPropertyVal'' is not a member of ''sql'' include/mysql_connection.h:157: error: ''ConnectPropertyVal'' is not a member of ''sql'' include/mysql_connection.h:157: error: template argument 2 is invalid include/mysql_connection.h:157: error: template argument 4 is invalid include/mysql_connection.h:160: error: ''boost'' has not been declared include/mysql_connection.h:160: error: ISO C++ forbids declaration of ''shared_ptr'' with no type include/mysql_connection.h:160: error: expected '';'' before ''<'' token make[2]: *** [build/Debug/GNU-MacOSX/addproduct.o] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 538ms)

En Netbeans solo estoy vinculando libmysqlcppconn.dylib .

¿Qué archivos me estoy perdiendo? ¿Por qué está pidiendo BOOST? y qué Boost Libs necesito instalar?



mysql_connection.h incluye #include <boost/shared_ptr.hpp> , puede usar las últimas versiones de boost o modificar las siguientes líneas mysql_connection.h para usar std :: shared_ptr en su lugar:

actualizar

#include <boost/shared_ptr.hpp> boost::shared_ptr< NativeAPI::NativeConnectionWrapper > proxy;

a

#include <memory> std::shared_ptr< NativeAPI::NativeConnectionWrapper > proxy;