[odb-users] Linking problem at Ubuntu 16.04

Boris Kolpackov boris at codesynthesis.com
Mon May 30 18:57:55 EDT 2016


Hi Martin,

Martin Schneider <martin at mu-schneider.de> writes:

> ./configure --with-database=mysql CXXFLAGS=-std=c++11
> make
> 
> but then a lot of deprecate warnings like:
> ../../libcommon/common/common.hxx:42:15: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]

You can add -Wno-deprecated to suppress these (we will get rid of them
once we switch to C++11-only):

./configure --with-database=mysql CXXFLAGS="-std=c++11 -Wno-deprecated"


> test-odb.cxx:2367:14: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = test3::object1; _Dp = std::default_delete<test3::object1>]’
>        o.p2 (v);

I am pretty sure you are trying to compile code generated in the C++98 mode.
Did you do:

make distclean

Before running configure?

Boris



More information about the odb-users mailing list