bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
76 stars 228 forks source link

How to build clangw .lib #359

Open HighVorz opened 8 months ago

HighVorz commented 8 months ago

I'm build boost with clang, and generate things like this 'libboost_filesystem-clang17-s-x64-1_84.lib', but when I compile .cpp, there is a link error.

LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-clangw17-s-x64-1_84.lib'

It requires clangw rather than clang, how to generate that?

image

image

grafikrobot commented 8 months ago

I'm not entirely sure, since I didn't write this part of B2, but I think you need to invoke as b2 toolset=clang-win ... when building.

HighVorz commented 8 months ago

I'm not entirely sure, since I didn't write this part of B2, but I think you need to invoke as b2 toolset=clang-win ... when building.

yes,it works