List:MySQL++« Previous MessageNext Message »
From:Jake Colman Date:November 26 2013 9:30pm
Subject:Compiling v3.2.0 with VS 2005
View as plain text  
I can build mysqlpp 3.2.0 correctly using the project as distributed.
 There are no warning and all is well.  For the purposes of my development
and for ease of version control, I include the project alongside other
projects in my solution and build it that way.  In that mode, I am seeing a
bunch of template warnings.  I compared my project settings to the official
settings and I believe it is all the same.  One difference is that I am
using a static lib, not a DLL.

Does anyone have any idea how I can resolve these warnings?

1>        c:\vc\mysqlpp\cpool.h(240) : see reference to class template
instantiation 'std::list<_Ty>'
being compiled
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo
1>        ]
1>c:\program files (x86)\microsoft visual studio 8\vc\include\list(42) :
warning C4610: struct 'std::_List_nod<_Ty,_Alloc>::_Node' can never be
instantiated - user defined constructor required
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo,
1>            _Alloc=std::allocator<mysqlpp::ConnectionPool::ConnectionInfo>
1>        ]
1>c:\program files (x86)\microsoft visual studio 8\vc\include\list(42) :
warning C4510: 'std::_List_nod<_Ty,_Alloc>::_Node' : default constructor
could not be generated
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo,
1>            _Alloc=std::allocator<mysqlpp::ConnectionPool::ConnectionInfo>
1>        ]
1>        c:\program files (x86)\microsoft visual studio
8\vc\include\list(38) : see declaration of
'std::_List_nod<_Ty,_Alloc>::_Node'
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo,
1>            _Alloc=std::allocator<mysqlpp::ConnectionPool::ConnectionInfo>
1>        ]
1>        c:\program files (x86)\microsoft visual studio
8\vc\include\list(111) : see reference to class template instantiation
'std::_List_nod<_Ty,_Alloc>::_Node' being compiled
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo,
1>            _Alloc=std::allocator<mysqlpp::ConnectionPool::ConnectionInfo>
1>        ]
1>        c:\program files (x86)\microsoft visual studio
8\vc\include\list(110) : while compiling class template member function
'std::_List_nod<_Ty,_Alloc>::_Node
*&std::list<_Ty>::_Nextnode(std::_List_nod<_Ty,_Alloc>::_Node *)'
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo,
1>            _Alloc=std::allocator<mysqlpp::ConnectionPool::ConnectionInfo>
1>        ]
1>        c:\vc\mysqlpp\cpool.h(240) : see reference to class template
instantiation 'std::list<_Ty>' being compiled
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo
1>        ]
1>c:\program files (x86)\microsoft visual studio 8\vc\include\list(42) :
warning C4610: struct 'std::_List_nod<_Ty,_Alloc>::_Node' can never be
instantiated - user defined constructor required
1>        with
1>        [
1>            _Ty=mysqlpp::ConnectionPool::ConnectionInfo,
1>            _Alloc=std::allocator<mysqlpp::ConnectionPool::ConnectionInfo>
1>        ]

*Jake Colman*

*Director, Development *| Billtrust

Tel: 609.235.0792 | email: jcolman@stripped | Web: www.billtrust.com

Follow us: Twitter <http://www.twitter.com/billtrust>|
Facebook<http://www.facebook.com/Billtrust.CompleteBilling>|
LinkedIn <http://www.linkedin.com/company/99112> |
Blog<http://blog.billtrust.com/>

Thread
Compiling v3.2.0 with VS 2005Jake Colman26 Nov
  • Re: Compiling v3.2.0 with VS 2005Warren Young27 Nov
    • Re: Compiling v3.2.0 with VS 2005Jake Colman27 Nov
      • Re: Compiling v3.2.0 with VS 2005Warren Young27 Nov