You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- nanodbc version: 2.13.0
-- nanodbc compile: C++14
-- Performing Test CXX_SUPPORTS_STDLIB
-- Performing Test CXX_SUPPORTS_STDLIB - Success
-- nanodbc build: Disable linking libc++ - OFF
-- nanodbc feature: ODBC Version Override - OFF
-- nanodbc feature: Disable async features - OFF
-- nanodbc feature: Enable Unicode - ON
-- nanodbc feature: Enable Boost - OFF
-- nanodbc feature: Enable SQL_NO_DATA bug workaround - OFF
-- nanodbc build: ODBC on Unix - unixODBC
-- ODBC compile flags: -I/usr/local/Cellar/unixodbc/2.3.9/include
-- ODBC link flags: -L/usr/local/Cellar/unixodbc/2.3.9/lib -lodbc
-- Use rpaths on Mac OS X - ON
-- nanodbc build: Enable nanodbc target - STATIC
-- nanodbc build: Disable install target - OFF
-- nanodbc build: Disable tests target - OFF
-- nanodbc build: Disable examples target - OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /Volumes/Home/pvn/dev/nanodbc/build
errors
make
Scanning dependencies of target nanodbc
[ 3%] Building CXX object CMakeFiles/nanodbc.dir/nanodbc/nanodbc.cpp.o
[ 6%] Linking CXX static library libnanodbc.a
[ 6%] Built target nanodbc
Scanning dependencies of target vertica_tests
[ 10%] Building CXX object test/CMakeFiles/vertica_tests.dir/main.cpp.o
In file included from /Volumes/Home/pvn/dev/nanodbc/test/main.cpp:9:
/Volumes/Home/pvn/dev/nanodbc/test/base_test_fixture.h:62:5: error: no matching function for call to 'wcsnrtombs'
wcsnrtombs(&out[0], &source, characters.size(), out.length(), nullptr);
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/wchar.h:203:9: note: candidate function not viable:
no known conversion from 'std::__1::basic_string<char16_t, std::__1::char_traits<char16_t>,
std::__1::allocator<char16_t> >::value_type *' (aka 'char16_t *') to 'char *' for 1st argument
size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t,
^
In file included from /Volumes/Home/pvn/dev/nanodbc/test/main.cpp:9:
/Volumes/Home/pvn/dev/nanodbc/test/base_test_fixture.h:85:19: error: no matching function for call to 'mbsnrtowcs'
size_t size = mbsnrtowcs(nullptr, in.data(), in.length(), 0, nullptr);
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/wchar.h:195:9: note: candidate function not viable:
no known conversion from 'const std::__1::basic_string<char16_t, std::__1::char_traits<char16_t>,
std::__1::allocator<char16_t> >::value_type *' (aka 'const char16_t *') to 'const char **' for 2nd argument
size_t mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t,
^
In file included from /Volumes/Home/pvn/dev/nanodbc/test/main.cpp:9:
/Volumes/Home/pvn/dev/nanodbc/test/base_test_fixture.h:89:17: error: cannot initialize a variable of type 'const char *'
with an rvalue of type 'const std::__1::basic_string<char16_t, std::__1::char_traits<char16_t>,
std::__1::allocator<char16_t> >::value_type *' (aka 'const char16_t *')
const char* source = in.data();
^ ~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Environment
Actual behavior
Expected behavior
Minimal Working Example
I get a compiler error building on MacOS
cmake .. -DNANODBC_ENABLE_UNICODE=ON
errors
The text was updated successfully, but these errors were encountered: