SRombauts / SQLiteCpp

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

(vcpkg) `LNK2019: unresolved external symbol` on Windows 11 for `Database` `std::filesystem::path` constructor #474

Open masonhieb opened 3 months ago

masonhieb commented 3 months ago

Preface

I installed SQLiteCpp 3.3.1 using vcpkg

Component Version Information
vcpkg 2024-07-10-d2dfc73769081bdd9b782d08d27794780b7a99b9
SQLiteCpp sqlitecpp:x64-windows 3.3.1
CMake 3.30.1
MSBuild 17.10.4+10fbfbf2e

Description

On Windows, the constructor for Database that takes a std::filesystem::path argument is not found by the linker. It does not appear to be present in the vcpkg\installed\x64-windows\lib\SQLiteCpp.lib (DUMPBIN output provided below).

I tried running this on a Linux machine and it successfully built and ran so it must have something to do with Windows builds specifically.

I tested passing a std::string instead of a std::filesystem::path and that built and ran successfully on Windows 11.

Minimal Reproducible Example

main.cpp

#include <SQLiteCpp/SQLiteCpp.h>
#include <filesystem>
#include <iostream>
#include <string>

int main()
{
  std::filesystem::path p("example.db3");
  SQLite::Database db(p, SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE);
  return EXIT_SUCCESS;
}

CMakeLists.txt

cmake_minimum_required(VERSION 3.25)
project(testsqlite VERSION 1.0 LANGUAGES CXX)
set (CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(SQLiteCpp CONFIG REQUIRED)

add_executable(testsqlite main.cpp)

if(WIN32)
target_link_options(testsqlite PRIVATE "/VERBOSE")
endif(WIN32)

target_link_libraries(testsqlite PRIVATE SQLiteCpp)

Output

Relevant Output of DUMPBIN /EXPORTS SQLiteCpp.lib

Microsoft (R) COFF/PE Dumper Version 14.40.33813.0
                  ??0Database@SQLite@@QEAA@$$QEAV01@@Z (public: __cdecl SQLite::Database::Database(class SQLite::Database &&))
                  ??0Database@SQLite@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HH0@Z (public: __cdecl SQLite::Database::Database(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))
                  ??0Database@SQLite@@QEAA@PEBDHH0@Z (public: __cdecl SQLite::Database::Database(char const *,int,int,char const *))
Windows Build Output ``` [main] Configuring project: test_sqlite [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_TOOLCHAIN_FILE=C:\Users\m\vcpkg\scripts\buildsystems\vcpkg.cmake -Wno-dev --no-warn-unused-cli -SC:/Users/m/projects/test_sqlite -Bc:/Users/m/projects/test_sqlite/build -G "Visual Studio 17 2022" -T host=x64 -A x64 [cmake] Not searching for unused variables given on the command line. [cmake] -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000. [cmake] -- The CXX compiler identification is MSVC 19.40.33813.0 [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- Configuring done (1.7s) [cmake] -- Generating done (0.0s) [cmake] -- Build files have been written to: C:/Users/m/projects/test_sqlite/build [visual-studio] Patch Windows SDK path from C:\Program Files (x86)\Windows Kits\10\bin\x64 to C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64 for C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat [main] Building folder: c:/Users/m/projects/test_sqlite/build ALL_BUILD [build] Starting build [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/m/projects/test_sqlite/build --config Debug --target ALL_BUILD -j 4 -- [build] MSBuild version 17.10.4+10fbfbf2e for .NET Framework [build] [build] 1>Checking Build System [build] Building Custom Rule C:/Users/m/projects/test_sqlite/CMakeLists.txt [build] main.cpp [build] [build] Starting pass 1 [build] Processed /DEFAULTLIB:msvcprtd [build] Processed /DEFAULTLIB:MSVCRTD [build] Processed /DEFAULTLIB:OLDNAMES [build] [build] Searching libraries [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Found "__declspec(dllimport) public: __cdecl SQLite::Database::~Database(void)" (__imp_??1Database@SQLite@@QEAA@XZ) [build] Referenced in main.obj [build] Loaded SQLiteCpp.lib(SQLiteCpp.dll) [build] Found "__declspec(dllimport) int const SQLite::OPEN_READWRITE" (__imp_?OPEN_READWRITE@SQLite@@3HB) [build] Referenced in main.obj [build] Loaded SQLiteCpp.lib(SQLiteCpp.dll) [build] Found "__declspec(dllimport) int const SQLite::OPEN_CREATE" (__imp_?OPEN_CREATE@SQLite@@3HB) [build] Referenced in main.obj [build] Loaded SQLiteCpp.lib(SQLiteCpp.dll) [build] Found __IMPORT_DESCRIPTOR_SQLiteCpp [build] Referenced in SQLiteCpp.lib(SQLiteCpp.dll) [build] Referenced in SQLiteCpp.lib(SQLiteCpp.dll) [build] Referenced in SQLiteCpp.lib(SQLiteCpp.dll) [build] Loaded SQLiteCpp.lib(SQLiteCpp.dll) [build] Found __NULL_IMPORT_DESCRIPTOR [build] Referenced in SQLiteCpp.lib(SQLiteCpp.dll) [build] Loaded SQLiteCpp.lib(SQLiteCpp.dll) [build] Found SQLiteCpp_NULL_THUNK_DATA [build] Referenced in SQLiteCpp.lib(SQLiteCpp.dll) [build] Loaded SQLiteCpp.lib(SQLiteCpp.dll) [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] Found "__declspec(dllimport) public: __cdecl std::_Lockit::_Lockit(int)" (__imp_??0_Lockit@std@@QEAA@H@Z) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "__declspec(dllimport) public: __cdecl std::_Lockit::~_Lockit(void)" (__imp_??1_Lockit@std@@QEAA@XZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found __std_system_error_allocate_message [build] Referenced in main.obj [build] Loaded msvcprtd.lib(syserror_import_lib.obj) [build] Found "char const * __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPEBDH@Z) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "int __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAHH@Z) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found __std_fs_code_page [build] Referenced in main.obj [build] Loaded msvcprtd.lib(filesystem.obj) [build] Found _Mbrtowc [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "__declspec(dllimport) public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (__imp_?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "__declspec(dllimport) public: char const * __cdecl std::_Locinfo::_Getdays(void)const " (__imp_?_Getdays@_Locinfo@std@@QEBAPEBDXZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "__declspec(dllimport) public: char const * __cdecl std::_Locinfo::_Getmonths(void)const " (__imp_?_Getmonths@_Locinfo@std@@QEBAPEBDXZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "__declspec(dllimport) public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (__imp_?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found "__declspec(dllimport) public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (__imp_?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) [build] Referenced in main.obj [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found __IMPORT_DESCRIPTOR_MSVCP140D [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Found MSVCP140D_NULL_THUNK_DATA [build] Referenced in msvcprtd.lib(MSVCP140D.dll) [build] Loaded msvcprtd.lib(MSVCP140D.dll) [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\MSVCRTD.lib: [build] Found "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z) [build] Referenced in main.obj [build] Loaded MSVCRTD.lib(new_scalar.obj) [build] Found "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z) [build] Referenced in main.obj [build] Loaded MSVCRTD.lib(delete_scalar_size.obj) [build] Found _RTC_CheckStackVars [build] Referenced in main.obj [build] Loaded MSVCRTD.lib(stack.obj) [build] Found _RTC_InitBase [build] Referenced in main.obj [build] Loaded MSVCRTD.lib(init.obj) [build] Found __GSHandlerCheck [build] Referenced in main.obj [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded MSVCRTD.lib(gshandler.obj) [build] Found __GSHandlerCheck_EH4 [build] Referenced in main.obj [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded MSVCRTD.lib(gshandlereh4.obj) [build] Found __security_check_cookie [build] Referenced in main.obj [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(gshandler.obj) [build] Loaded MSVCRTD.lib(amdsecgs.obj) [build] Found "const type_info::`vftable'" (??_7type_info@@6B@) [build] Referenced in main.obj [build] Loaded MSVCRTD.lib(std_type_info_static.obj) [build] Found __security_cookie [build] Referenced in main.obj [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(amdsecgs.obj) [build] Loaded MSVCRTD.lib(gs_cookie.obj) [build] Found mainCRTStartup [build] Loaded MSVCRTD.lib(exe_main.obj) [build] Found __guard_dispatch_icall_fptr [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(guard_support.obj) [build] Found "void __cdecl __scrt_throw_std_bad_alloc(void)" (?__scrt_throw_std_bad_alloc@@YAXXZ) [build] Referenced in MSVCRTD.lib(new_scalar.obj) [build] Loaded MSVCRTD.lib(throw_bad_alloc.obj) [build] Found "void __cdecl operator delete(void *)" (??3@YAXPEAX@Z) [build] Referenced in MSVCRTD.lib(delete_scalar_size.obj) [build] Loaded MSVCRTD.lib(delete_scalar.obj) [build] Found "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure@@YAXPEAXPEBD@Z) [build] Referenced in MSVCRTD.lib(stack.obj) [build] Loaded MSVCRTD.lib(error.obj) [build] Found _RTC_SetErrorFuncW [build] Referenced in MSVCRTD.lib(init.obj) [build] Loaded MSVCRTD.lib(userapi.obj) [build] Found __report_gsfailure [build] Referenced in MSVCRTD.lib(amdsecgs.obj) [build] Loaded MSVCRTD.lib(gs_report.obj) [build] Found atexit [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(utility.obj) [build] Found __security_init_cookie [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(gs_support.obj) [build] Found _matherr [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(matherr.obj) [build] Found _get_startup_argv_mode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded MSVCRTD.lib(argv_mode.obj) [build] Found _get_startup_commit_mode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(commit_mode.obj) [build] Found _get_startup_file_mode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(file_mode.obj) [build] Found _get_startup_new_mode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(new_mode.obj) [build] Found _get_startup_thread_locale_mode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(thread_locale.obj) [build] Found "void __cdecl __scrt_initialize_type_info(void)" (?__scrt_initialize_type_info@@YAXXZ) [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(tncleanup.obj) [build] Found _should_initialize_environment [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(env_mode.obj) [build] Found _initialize_invalid_parameter_handler [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(invalid_parameter_handler.obj) [build] Found _initialize_denormal_control [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(denormal_control.obj) [build] Found __scrt_initialize_default_local_stdio_options [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(default_local_stdio_options.obj) [build] Found __scrt_is_user_matherr_present [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(matherr_detection.obj) [build] Found __scrt_get_dyn_tls_init_callback [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(dyn_tls_init.obj) [build] Found __scrt_get_dyn_tls_dtor_callback [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(dyn_tls_dtor.obj) [build] Found __scrt_is_managed_app [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(utility_desktop.obj) [build] Found _RTC_Initialize [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(initsect.obj) [build] Found __xi_a [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded MSVCRTD.lib(initializers.obj) [build] Processed /DEFAULTLIB:kernel32.lib [build] Processed /DISALLOWLIB:msvcrt.lib [build] Processed /DISALLOWLIB:libcmt.lib [build] Processed /DISALLOWLIB:libcmtd.lib [build] Processed /DISALLOWLIB:vcruntime.lib [build] Processed /DEFAULTLIB:vcruntimed.lib [build] Processed /DISALLOWLIB:libvcruntime.lib [build] Processed /DISALLOWLIB:libvcruntimed.lib [build] Processed /DISALLOWLIB:ucrt.lib [build] Processed /DEFAULTLIB:ucrtd.lib [build] Processed /DISALLOWLIB:libucrt.lib [build] Processed /DISALLOWLIB:libucrtd.lib [build] Found _guard_dispatch_icall_nop [build] Referenced in MSVCRTD.lib(guard_support.obj) [build] Loaded MSVCRTD.lib(guard_dispatch.obj) [build] Found _guard_xfg_dispatch_icall_nop [build] Referenced in MSVCRTD.lib(guard_support.obj) [build] Loaded MSVCRTD.lib(guard_xfg_dispatch.obj) [build] Found "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" (?_RTC_GetSrcLine@@YAHPEAEPEA_WKPEAH1K@Z) [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded MSVCRTD.lib(pdblkup.obj) [build] Found __isa_available_init [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded MSVCRTD.lib(cpu_disp.obj) [build] Found __scrt_is_ucrt_dll_in_use [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded MSVCRTD.lib(ucrt_detection.obj) [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\vcruntimed.lib: [build] Found __std_exception_copy [build] Referenced in main.obj [build] Referenced in MSVCRTD.lib(throw_bad_alloc.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __std_exception_destroy [build] Referenced in main.obj [build] Referenced in MSVCRTD.lib(throw_bad_alloc.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found memcpy [build] Referenced in main.obj [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found _CxxThrowException [build] Referenced in main.obj [build] Referenced in MSVCRTD.lib(throw_bad_alloc.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __CxxFrameHandler4 [build] Referenced in main.obj [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(gshandlereh4.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140_1D.dll) [build] Found memcmp [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found memset [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __C_specific_handler [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __C_specific_handler_noexcept [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __std_type_info_destroy_list [build] Referenced in MSVCRTD.lib(tncleanup.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __current_exception [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __current_exception_context [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __vcrt_GetModuleFileNameW [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __vcrt_GetModuleHandleW [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __vcrt_LoadLibraryExW [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __IMPORT_DESCRIPTOR_VCRUNTIME140D [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found __IMPORT_DESCRIPTOR_VCRUNTIME140_1D [build] Referenced in vcruntimed.lib(VCRUNTIME140_1D.dll) [build] Loaded vcruntimed.lib(VCRUNTIME140_1D.dll) [build] Found VCRUNTIME140D_NULL_THUNK_DATA [build] Referenced in vcruntimed.lib(VCRUNTIME140D.dll) [build] Loaded vcruntimed.lib(VCRUNTIME140D.dll) [build] Found VCRUNTIME140_1D_NULL_THUNK_DATA [build] Referenced in vcruntimed.lib(VCRUNTIME140_1D.dll) [build] Loaded vcruntimed.lib(VCRUNTIME140_1D.dll) [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64\ucrtd.lib: [build] Found __imp__invalid_parameter [build] Referenced in main.obj [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp__calloc_dbg [build] Referenced in main.obj [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp__CrtDbgReport [build] Referenced in main.obj [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp_wcslen [build] Referenced in main.obj [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found strlen [build] Referenced in main.obj [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp____lc_codepage_func [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp_abort [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp__free_dbg [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __imp__malloc_dbg [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _callnewh [build] Referenced in MSVCRTD.lib(new_scalar.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found malloc [build] Referenced in MSVCRTD.lib(new_scalar.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _CrtDbgReportW [build] Referenced in MSVCRTD.lib(init.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _seh_filter_exe [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _set_app_type [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __setusermatherr [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _configure_narrow_argv [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _initialize_narrow_environment [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _get_initial_narrow_environment [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _initterm [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _initterm_e [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found exit [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _exit [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _set_fmode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __p___argc [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __p___argv [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _cexit [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _c_exit [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _register_thread_local_exe_atexit_callback [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _configthreadlocale [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _set_new_mode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __p__commode [build] Referenced in MSVCRTD.lib(exe_main.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found strcpy_s [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found strcat_s [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __stdio_common_vsprintf_s [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _seh_filter_dll [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _initialize_onexit_table [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _register_onexit_function [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _execute_onexit_table [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _crt_atexit [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _crt_at_quick_exit [build] Referenced in MSVCRTD.lib(utility.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found terminate [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _wmakepath_s [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found _wsplitpath_s [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found wcscpy_s [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found __IMPORT_DESCRIPTOR_ucrtbased [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Found ucrtbased_NULL_THUNK_DATA [build] Referenced in ucrtd.lib(ucrtbased.dll) [build] Loaded ucrtd.lib(ucrtbased.dll) [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Found __imp_LocalFree [build] Referenced in msvcprtd.lib(syserror_import_lib.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_FormatMessageA [build] Referenced in msvcprtd.lib(syserror_import_lib.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetLocaleInfoEx [build] Referenced in msvcprtd.lib(syserror_import_lib.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_SetCurrentDirectoryW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetCurrentDirectoryW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CreateDirectoryW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CreateFileW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_FindClose [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_FindFirstFileW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_FindFirstFileExW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_FindNextFileW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetDiskFreeSpaceExW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetFileAttributesW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetFileAttributesExW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetFileInformationByHandle [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetFinalPathNameByHandleW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetFullPathNameW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_SetFileAttributesW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_SetFileInformationByHandle [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_SetFileTime [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetTempPathW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_AreFileApisANSI [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CloseHandle [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetLastError [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_DeviceIoControl [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetModuleHandleW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetProcAddress [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CreateDirectoryExW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CopyFileW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_MoveFileExW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CreateHardLinkW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetFileInformationByHandleEx [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_CreateSymbolicLinkW [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_MultiByteToWideChar [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_WideCharToMultiByte [build] Referenced in msvcprtd.lib(filesystem.obj) [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_IsDebuggerPresent [build] Referenced in MSVCRTD.lib(error.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_RaiseException [build] Referenced in MSVCRTD.lib(error.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_RtlCaptureContext [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_RtlLookupFunctionEntry [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_RtlVirtualUnwind [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_UnhandledExceptionFilter [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_SetUnhandledExceptionFilter [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetCurrentProcess [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_TerminateProcess [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_IsProcessorFeaturePresent [build] Referenced in MSVCRTD.lib(gs_report.obj) [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_QueryPerformanceCounter [build] Referenced in MSVCRTD.lib(gs_support.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetCurrentProcessId [build] Referenced in MSVCRTD.lib(gs_support.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetCurrentThreadId [build] Referenced in MSVCRTD.lib(gs_support.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetSystemTimeAsFileTime [build] Referenced in MSVCRTD.lib(gs_support.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_InitializeSListHead [build] Referenced in MSVCRTD.lib(tncleanup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetStartupInfoW [build] Referenced in MSVCRTD.lib(utility_desktop.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_HeapAlloc [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_HeapFree [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_GetProcessHeap [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_VirtualQuery [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __imp_FreeLibrary [build] Referenced in MSVCRTD.lib(pdblkup.obj) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found __IMPORT_DESCRIPTOR_KERNEL32 [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Found KERNEL32_NULL_THUNK_DATA [build] Referenced in kernel32.lib(KERNEL32.dll) [build] Loaded kernel32.lib(KERNEL32.dll) [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\MSVCRTD.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\vcruntimed.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64\ucrtd.lib: [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] [build] Finished searching libraries [build] [build] Searching libraries [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\MSVCRTD.lib: [build] Found __scrt_stub_for_acrt_initialize [build] Loaded MSVCRTD.lib(ucrt_stubs.obj) [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\vcruntimed.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64\ucrtd.lib: [build] [build] Finished searching libraries [build] [build] Searching libraries [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\MSVCRTD.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\vcruntimed.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64\ucrtd.lib: [build] [build] Finished searching libraries [build] [build] Searching libraries [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\MSVCRTD.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\vcruntimed.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64\ucrtd.lib: [build] [build] Finished searching libraries [build] [build] Finished pass 1 [build] [build] [build] Searching libraries [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\MSVCRTD.lib: [build] Found _load_config_used [build] Loaded MSVCRTD.lib(loadcfg.obj) [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\vcruntimed.lib: [build] Found __guard_memcpy_fptr [build] Referenced in MSVCRTD.lib(loadcfg.obj) [build] Loaded vcruntimed.lib(softmemtag.obj) [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64\ucrtd.lib: [build] Searching C:\Users\m\vcpkg\installed\x64-windows\debug\lib\SQLiteCpp.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\kernel32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib: [build] Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib: [build] Searching C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\msvcprtd.lib: [build] [build] Finished searching libraries [build] [build] Invoking rc.exe: [build] /v [build] /x [build] /fo [build] "C:\Users\m\AppData\Local\Temp\lnk{2DD6D8B5-943A-4A44-853C-7D511423EEF1}.tmp" [build] "C:\Users\m\AppData\Local\Temp\lnk{ADC66C8F-36E9-4502-B093-245075599D00}.tmp" [build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 [build] [build] Copyright (C) Microsoft Corporation. All rights reserved. [build] [build] [build] Using codepage 1252 as default [build] Creating C:\Users\m\AppData\Local\Temp\lnk{2DD6D8B5-943A-4A44-853C-7D511423EEF1}.tmp [build] [build] [build] C:\Users\m\AppData\Local\Temp\lnk{ADC66C8F-36E9-4502-B093-245075599D00}.tmp. [build] Writing 24:1, lang:0x409, size 381 [build] [build] Invoking cvtres.exe: [build] /machine:amd64 [build] /verbose [build] /out:"C:\Users\m\AppData\Local\Temp\lnk{4B163127-3F30-40E8-98C8-A7347FA64C0E}.tmp" [build] /readonly [build] "C:\Users\m\AppData\Local\Temp\lnk{2DD6D8B5-943A-4A44-853C-7D511423EEF1}.tmp" [build] Microsoft (R) Windows Resource To Object Converter Version 14.40.33813.0 [build] Copyright (C) Microsoft Corporation. All rights reserved. [build] [build] adding resource. type:MANIFEST, name:1, language:0x0409, flags:0x30, size:381 [build] [build] main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl SQLite::Database::Database(class std::filesystem::path const &,int,int,class std::basic_string,class std::allocator > const &)" (__imp_??0Database@SQLite@@QEAA@AEBVpath@filesystem@std@@HHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) referenced in function main [C:\Users\m\projects\test_sqlite\build\testsqlite.vcxproj] [build] [build] Unused libraries: [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\user32.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\gdi32.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\winspool.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\shell32.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\ole32.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\oleaut32.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\uuid.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\comdlg32.lib [build] C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\um\x64\advapi32.lib [build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\lib\x64\OLDNAMES.lib [build] [build] C:\Users\m\projects\test_sqlite\build\Debug\testsqlite.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\m\projects\test_sqlite\build\testsqlite.vcxproj] [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/m/projects/test_sqlite/build --config Debug --target ALL_BUILD -j 4 -- exited with code: 1 [driver] Build completed: 00:00:01.641 [build] Build finished with exit code 1 ```
UnixY2K commented 3 months ago

this is an vcpkg specific issue(see #432 #431) as a workarround you can manually define SQLITECPP_COMPILE_DLL in your project definition or via source code like this

#define SQLITECPP_COMPILE_DLL
#include <SQLiteCpp/SQLiteCpp.h>
// rest of your code
UnixY2K commented 3 months ago

reviewing this I think the issue is in how vcpkg configures it: https://github.com/jiayuehua/vcpkg/blob/11ed79186fe850bd3a98cfbf1854514d2b3070a2/ports/sqlitecpp/portfile.cmake#L20C1-L32C2


vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        ${FEATURE_OPTIONS}
        -DSQLITECPP_RUN_CPPLINT=OFF
        -DSQLITECPP_RUN_CPPCHECK=OFF
        -DSQLITECPP_INTERNAL_SQLITE=OFF
        -DSQLITE_ENABLE_COLUMN_METADATA=ON
        -DSQLITECPP_USE_STATIC_RUNTIME=OFF # unconditionally off because vcpkg's toolchains already do the right thing
        # See https://github.com/SRombauts/SQLiteCpp/blob/e74403264ec7093060f4ed0e84bc9208997c8344/CMakeLists.txt#L40-L46
        ${USE_STACK_PROTECTION}
)

this section should define: BUILD_SHARED_LIBS depending on the option