[boost.date_time] link failure
acgetchell opened this issue · 2 comments
acgetchell commented
Host Environment
- OS: Windows
- Compiler: Visual Studio 2017 with clang-cl 9.0.0
To Reproduce
Steps to reproduce the behavior:
Use Boost.Date_Time:
acgetchell/CDT-plusplus@ece069b
Configure on AppVeyor:
https://github.com/acgetchell/CDT-plusplus/blob/develop/.appveyor.yml
Failure logs
https://ci.appveyor.com/project/acgetchell/cdt-plusplus/builds/29066845#L1213
Additional context
It works on Ubuntu 18.04, gcc-9 and clang-7
https://travis-ci.org/acgetchell/CDT-plusplus/builds/615900365
It also works locally on macOS 10.15, but there is a general regression which prevents vcpkg from building on earlier versions of macOS.
yurybura commented
@PhoebeHui Could you check and close this issue?
PhoebeHui commented
I confirmed this issue with VS2019+clang-cl 12, it builds fine with the repro code.
#include <iostream>
#include <boost/date_time.hpp>
inline std::string currentDateTime()
{
using namespace boost::posix_time;
ptime now = microsec_clock::local_time();
std::ostringstream result_s;
result_s << now;
std::string result = result_s.str();
return result;
}