
im offically confused now i can't build any of my former projects using 1.73 or 1.74 only 1.69 works without changes (maybe also 1.70+) so mabye i didn't properbly checked the builds when i upgraded to 1.73 IDE: VS2017, clang-cl 10.0.0, LLVM Visual Studio Extension, Boost 1.69,1.73,1.74 - freshly build using Boost 1.69 projects builds with microsoft-cl and clang-cl without definining BOOST_LIB_TOOLSET for Boost 1.73,1.74 i need to set BOOST_LIB_TOOLSET to "vc141" example: ---------------------- //#define BOOST_LIB_TOOLSET "vc141" // only needed for 1.73 and 1.74, not for 1.69 #include <boost/regex.hpp> /* definition to expand macro then apply to pragma message */ #define VALUE_TO_STRING(x) #x #define VALUE(x) VALUE_TO_STRING(x) #define VAR_NAME_VALUE(var) #var "=" VALUE(var) #ifdef _MSC_VER #pragma message(VAR_NAME_VALUE(_MSC_VER)) #pragma message(VAR_NAME_VALUE(_MSC_FULL_VER)) #endif #ifdef _clang__ #pragma message(VAR_NAME_VALUE(__clang__)) #pragma message(VAR_NAME_VALUE(__clang_version__)) #endif #ifdef BOOST_MSVC #pragma message(VAR_NAME_VALUE(BOOST_MSVC)) #endif #ifdef BOOST_VERSION #pragma message(VAR_NAME_VALUE(BOOST_VERSION)) #endif #ifdef BOOST_LIB_TOOLSET #pragma message(VAR_NAME_VALUE(BOOST_LIB_TOOLSET)) #endif int main() { return 0; } ---------------------- Boost 1.69 microsoft-cl 1>------ Rebuild All started: Project: clang_cl_tests, Configuration: Debug Win32 ------ 1>clang_cl_tests.cpp 1>Linking to lib file: libboost_regex-vc141-mt-gd-x32-1_69.lib 1>Linking to lib file: libboost_regex-vc141-mt-gd-x32-1_69.lib 1>_MSC_VER=1916 1>_MSC_FULL_VER=191627043 1>BOOST_MSVC=1916 1>BOOST_VERSION=106900 1>BOOST_LIB_TOOLSET="vc141" 1> Creating library D:\temp\clang_cl_tests\clang_cl_tests\Debug\clang_cl_tests.lib and object D:\temp\clang_cl_tests\clang_cl_tests\Debug\clang_cl_tests.exp 1>clang_cl_tests.vcxproj -> D:\temp\clang_cl_tests\clang_cl_tests\Debug\clang_cl_tests.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== clang-cl 1>------ Rebuild All started: Project: clang_cl_tests, Configuration: Debug Win32 ------ 1>clang_cl_tests.cpp(12): warning : _MSC_VER=1916 [-W#pragma-messages] 1>clang_cl_tests.cpp(13): warning : _MSC_FULL_VER=191627043 [-W#pragma-messages] 1>clang_cl_tests.cpp(23): warning : BOOST_VERSION=106900 [-W#pragma-messages] 1>lld-link : warning : /debug:fastlink unsupported; using /debug:full 1>clang_cl_tests.vcxproj -> D:\temp\clang_cl_tests\clang_cl_tests\Debug\clang_cl_tests.exe 1>Done building project "clang_cl_tests.vcxproj". ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== Boost 1.73 microsoft-cl 1>------ Rebuild All started: Project: clang_cl_tests, Configuration: Debug Win32 ------ 1>clang_cl_tests.cpp 1>Linking to lib file: libboost_regex-vc141-mt-gd-x32-1_73.lib 1>_MSC_VER=1916 1>_MSC_FULL_VER=191627043 1>BOOST_MSVC=1916 1>BOOST_VERSION=107300 1>BOOST_LIB_TOOLSET="vc141" 1>clang_cl_tests.vcxproj -> D:\temp\clang_cl_tests\clang_cl_tests\Debug\clang_cl_tests.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== clang-cl 1>------ Rebuild All started: Project: clang_cl_tests, Configuration: Debug Win32 ------ 1>clang_cl_tests.cpp(12): warning : _MSC_VER=1916 [-W#pragma-messages] 1>clang_cl_tests.cpp(13): warning : _MSC_FULL_VER=191627043 [-W#pragma-messages] 1>clang_cl_tests.cpp(23): warning : BOOST_VERSION=107300 [-W#pragma-messages] 1>clang_cl_tests.cpp(26): warning : BOOST_LIB_TOOLSET="clangw" "10" [-W#pragma-messages] 1>lld-link : warning : /debug:fastlink unsupported; using /debug:full 1>lld-link : error : could not open 'libboost_regex-clangw10-mt-gd-x32-1_73.lib': no such file or directory 1>Done building project "clang_cl_tests.vcxproj" -- FAILED. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== Boost 1.74 microsoft-cl 1>------ Rebuild All started: Project: clang_cl_tests, Configuration: Debug Win32 ------ 1>clang_cl_tests.cpp 1>Linking to lib file: libboost_regex-vc141-mt-gd-x32-1_74.lib 1>_MSC_VER=1916 1>_MSC_FULL_VER=191627043 1>BOOST_MSVC=1916 1>BOOST_VERSION=107400 1>BOOST_LIB_TOOLSET="vc141" 1>clang_cl_tests.vcxproj -> D:\temp\clang_cl_tests\clang_cl_tests\Debug\clang_cl_tests.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== clang-cl 1>------ Rebuild All started: Project: clang_cl_tests, Configuration: Debug Win32 ------ 1>clang_cl_tests.cpp(12): warning : _MSC_VER=1916 [-W#pragma-messages] 1>clang_cl_tests.cpp(13): warning : _MSC_FULL_VER=191627043 [-W#pragma-messages] 1>clang_cl_tests.cpp(23): warning : BOOST_VERSION=107400 [-W#pragma-messages] 1>clang_cl_tests.cpp(26): warning : BOOST_LIB_TOOLSET="clangw" "10" [-W#pragma-messages] 1>lld-link : warning : /debug:fastlink unsupported; using /debug:full 1>lld-link : error : could not open 'libboost_regex-clangw10-mt-gd-x32-1_74.lib': no such file or directory 1>Done building project "clang_cl_tests.vcxproj" -- FAILED. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== Am 12.08.2020 um 17:12 schrieb Peter Dimov via Boost:
Dennis Luehring wrote:
it always worked for me without any special settings (im on VS2017 and using the LLVM-VStudio integrationhttps://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-tool... <https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-toolchain>)
i've never need to change anything in my projects beside installing latest LLVM/clang + extension and switching the compiler in every of my private and customer projects - its the first time with 1.74 that it does not work out of the box
i've never set any auto-link defines and using clang-cl on daily basis for some years now
What happens when you define BOOST_LIB_DIAGNOSTIC? What's the full compiler output when building your test program?
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost