-----Original Message----- From: Boost
On Behalf Of degski via Boost Sent: Freitag, 16. März 2018 12:20 To: boost Cc: degski Subject: Re: [boost] Clang on Windows On 15 March 2018 at 13:30, Marcel Raad via Boost
wrote: I've seen this error when /SUBSYSTEM:CONSOLE wasn't passed to the MSVC linker.
If you'd do that, you'll have an issue, but... I've just tested building an app not passing /SUBSYSTEM:CONSOLE. It builds and runs, but of course there's no console window (something flashes up, no error or problem).
Ah, I don't know what happens if invoked directly. What I meant is, if you create a new empty project from within Visual Studio and include unit_test.hpp, you get that error unless you set Linker->System->SubSystem to "Console (/SUBSYSTEM:CONSOLE)" in the project options.
I think the -flto=thin flag is possibly not properly passed around, or the vc linker (link.exe) is invoked instead of lld.exe. As OP's libs are lto instrumented, they can only be linked with lld and the flag -flto=thin.
Yes, the error message is from the MSVC linker. Marcel