Subject: Re: [boost] Info: Boost.Config is older than your compiler version - message is surprising
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2017-12-08 14:32:46
> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Dimov via Boost
> Sent: 08 December 2017 13:52
> To: boost_at_[hidden]
> Cc: Peter Dimov
> Subject: Re: [boost] Info: Boost.Config is older than your compiler version - message is surprising
> degski wriote:
> > Auto-linking (windows) is broken (and links to the lib-name without the
> > x32/x64).
> Is it? I thought I fixed it at the same time as I applied the other changes.
> 1>LINK : fatal error LNK1104: cannot open file
> How can I reproduce its not working?
I am fairly confident that autolinking IS working for MSVC (after much messing with rebuilding lib files and Library directory
But I am trying to get VS 15.5 working with Clang (Configuration properties, General, Platform toolset, = Visual Studio 2017 - Clang
with Microsoft CodeGen (v141_clang_c2) does not seem to work, but LLVM-vs2014 does without using a library).
After changing to use static rather than DLL, and adding the four libraries needed for stopwatch job
It links searching those libraries (shown using verbose option in linker)
Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86\libucrt.lib:
1> Searching I:\modular-boost\lib\libboost_chrono-clang50-mt-x32-1_66.lib:
1> Searching I:\modular-boost\lib\libboost_system-clang50-mt-x32-1_66.lib:
1> Searching I:\modular-boost\lib\libboost_date_time-clang50-mt-x32-1_66.lib:
1> Searching I:\modular-boost\lib\libboost_regex-clang50-mt-x32-1_66.lib:
1> Searching I:\modular-boost\lib\libboost_unit_test_framework-clang50-mt-x32-1_66.lib:
1> Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86\kernel32.lib:
(This verbosity helped me when I was linking to the dynamic lib ;-)
but ultimately fails here
1>libboost_system-clang50-mt-x32-1_66.lib(error_code.obj) : error LNK2001: unresolved external symbol __imp____RTDynamicCast
1>J:\Cpp\Misc\Release\lambert_w_compare_JM.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "lambert_w_compare_JM.vcxproj" -- FAILED.
This is the same problem that I have with trying to use Clang Codeblocks :-(
Suggestions most welcome.
But autolinking will never work with using Clang?
--- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk