SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

Build Error

Open badvir opened this issue 1 year ago • 3 comments

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

  • OS : CentOS 7
  • Compiler : llvm-toolset-7.0-clang
  • SQLiteCpp Version : 3.3.1

./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

badvir avatar Jan 29 '24 05:01 badvir

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

tenk28 avatar Apr 29 '24 18:04 tenk28

For the record: Fixed by aa7636120375d9fc6d25fc91fbe0ee4a907f9696.

thbeu avatar Apr 30 '24 04:04 thbeu

fixed in 3.3.2.

UnixY2K avatar Sep 15 '24 15:09 UnixY2K