|
Boost Users : |
Subject: Re: [Boost-users] Boost 1.68.0, clang, windows
From: degski (degski_at_[hidden])
Date: 2018-07-07 10:42:47
On 7 July 2018 at 12:11, Paul A. Bristow via Boost-users <
boost-users_at_[hidden]> wrote:
>
>
> Iâm working with Codeblocks IDE which is mingw64 based (but clang from the
> official site).
>
>
>
> I canât build libraries with b2 that are recognised (says âwrong formatâ).
>
>
>
You'll have to "tell" b2 to use the same linker (and output format as the
one you're using with CB). The compiler just builds object-files, there's
nothing to "recognise", so the error must be linked to the linker.
C:\Temp>lld
lld is a generic driver.
Invoke ld.lld (Unix), ld64.lld (macOS) or lld-link (Windows) instead.
You'll probably have to start with using clang++.exe, and not clang-cl.exe
(although you could try clang-cl -fuse-ld=lld -flto=thin, but I guess that
will still use lld-link, which will produce the same files as link.exe (the
VC-one)).
You can also add the clang-cl -v (verbose) option, that might give you a
better idea as to what is actually going on.
degski
-- *"If something cannot go on forever, it will stop" - Herbert Stein*
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net