I'm compiling the mysqlcppapi rc 2.0 under windows vs 2005
there are always a error in allocator.h, here is the log:
1>
e:\project\samples\mysqlcppapi-2.0.0\mysqlcppapi\smartpointer\allocator.h(35
) : error C2512: 'mysqlcppapi::Connection' : no appropriate default
constructor available
1>
e:\project\samples\mysqlcppapi-2.0.0\mysqlcppapi\smartpointer\allocator.h(34
) : while compiling class template member function 'mysqlcppapi::Connection
*mysqlcppapi::Allocator_NewDelete<T_cobj>::allocate(void)'
1> with
1> [
1> T_cobj=mysqlcppapi::Connection
1> ]
1>
e:\project\samples\mysqlcppapi-2.0.0\mysqlcppapi\smartpointer\sharedptr.h(22
3) : see reference to class template instantiation
'mysqlcppapi::Allocator_NewDelete<T_cobj>' being compiled
1> with
1> [
1> T_cobj=mysqlcppapi::Connection
1> ]
1>
e:\project\samples\mysqlcppapi-2.0.0\mysqlcppapi\smartpointer\sharedptr.h(20
7) : while compiling class template member function 'void
mysqlcppapi::SharedPtr<T_obj>::unref(void)'
1> with
1> [
1> T_obj=mysqlcppapi::Connection
1> ]
1>
e:\project\samples\mysqlcppapi-2.0.0\mysqlcppapi\smartpointer\sharedptr.h(13
0) : while compiling class template member function
'mysqlcppapi::SharedPtr<T_obj>::~SharedPtr(void)'
1> with
1> [
1> T_obj=mysqlcppapi::Connection
1> ]
1>
e:\project\samples\mysqlcppapi-2.0.0\mysqlcppapi\query_results\result_use.h(
54) : see reference to class template instantiation
'mysqlcppapi::SharedPtr<T_obj>' being compiled
1> with
1> [
1> T_obj=mysqlcppapi::Connection
1> ]
I haven't change any code the Connection, allocator.h, and SharedPtr
any tips was appreciated :)
|