SRombauts / SQLiteCpp

SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper.
http://srombauts.github.io/SQLiteCpp
MIT License
2.19k stars 509 forks source link

Build Error #458

Open badvir opened 7 months ago

badvir commented 7 months ago

I encountered the following error in CentOS 7 with Clang version 7.

./build.sh -- The C compiler identification is Clang 7.0.1 -- The CXX compiler identification is Clang 7.0.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using c++ standard c++11 -- CMake version: 3.6.2 -- Project version: 3.3.1 -- Using Stack Protection hardening -- CMAKE_CXX_COMPILER '/usr/bin/c++' 'Clang' '7.0.1' -- CMAKE_CXX_FLAGS ' -Wall -Wextra -Wpedantic -Wswitch-enum -Wshadow -Wno-long-long' -- CMAKE_CXX_FLAGS_DEBUG '-g' -- Using Address Sanitizer -- Compile sqlite3 from source in subdirectory -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE -- Found PythonInterp: /usr/bin/python (found version "2.7.5") -- Could NOT find cppcheck -- SQLITECPP_RUN_DOXYGEN OFF -- Found GTest: /usr/local/lib64/libgtest.a -- Link to GTest system library -- Configuring done -- Generating done -- Build files have been written to: /root/opensource/SQLiteCpp-3.3.1/build Scanning dependencies of target sqlite3 [ 4%] Building C object sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.o [ 9%] Linking C shared library libsqlite3.so [ 9%] Built target sqlite3 Scanning dependencies of target SQLiteCpp [ 13%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o In file included from /root/opensource/SQLiteCpp-3.3.1/src/Backup.cpp:12: In file included from /root/opensource/SQLiteCpp-3.3.1/include/SQLiteCpp/Backup.h:15: In file included from /root/opensource/SQLiteCpp-3.3.1/include/SQLiteCpp/Database.h:14: In file included from /root/opensource/SQLiteCpp-3.3.1/include/SQLiteCpp/Column.h:14: /root/opensource/SQLiteCpp-3.3.1/include/SQLiteCpp/Statement.h:82:16: error: exception specification of explicitly defaulted move assignment operator does not match the calculated one Statement& operator=(Statement&& aStatement) noexcept = default; ^ 1 error generated. gmake[2]: [CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o] Error 1 gmake[1]: [CMakeFiles/SQLiteCpp.dir/all] Error 2 gmake: *** [all] Error 2

tenk28 commented 4 months ago

It was about noexcept in move constructor at 3.3.1 release tag

image

Switch to latest commit at master, it's fixed for now

image

thbeu commented 4 months ago

For the record: Fixed by aa7636120375d9fc6d25fc91fbe0ee4a907f9696.