David Greene via llvm-dev
2018-Dec-12 19:18 UTC
[llvm-dev] Using LLD to link against third-party libraries? How?
Osman Zakir <osmanzakir90 at hotmail.com> writes:> LLVM on a Developer Command Prompt.I don't know what you mean by that. "LLVM" isn't a command. Can you post the exact command you use to link?> The ones I want to fix first are the ones from Boost and Jinja2Cpp. I > saw some from those as well.I'm not at all familiar with Jinja2Cpp. Is it possible it needs some explicit template instantiations?> If there any standard library ones missing, could it be because I > couldn't get it to build libcxx? I did try to include that, but it > seems to be missing. What should I do?Are you saying you tried to build libc++ and couldn't? I don't know what C++ standard library clang uses by default on Windows. If you don't have a C++ standard library nothing will work. I would concentrate on the standard library symbols first, because the way that works is well-understood by everyone here. Once you get that working you may find a lot of the other stuff goes away. -David
Osman Zakir via llvm-dev
2018-Dec-12 19:34 UTC
[llvm-dev] Using LLD to link against third-party libraries? How?
I mentioned the command I used in of my messages in this thread. And of course I used clang++.exe to do it, not "LLVM". I just meant I was using LLVM toolchain on the Developer Command Prompt for VS 2017. Anyway, I'm trying again to build LLVM now. I do have the MSVC compiler toolchain, but I want to try using the LLVM toolchain in Visual Studio since it's possible to do so. ________________________________ From: David Greene <dag at cray.com> Sent: Thursday, December 13, 2018 12:18 AM To: Osman Zakir Cc: llvm-dev at lists.llvm.org Subject: Re: [llvm-dev] Using LLD to link against third-party libraries? How? Osman Zakir <osmanzakir90 at hotmail.com> writes:> LLVM on a Developer Command Prompt.I don't know what you mean by that. "LLVM" isn't a command. Can you post the exact command you use to link?> The ones I want to fix first are the ones from Boost and Jinja2Cpp. I > saw some from those as well.I'm not at all familiar with Jinja2Cpp. Is it possible it needs some explicit template instantiations?> If there any standard library ones missing, could it be because I > couldn't get it to build libcxx? I did try to include that, but it > seems to be missing. What should I do?Are you saying you tried to build libc++ and couldn't? I don't know what C++ standard library clang uses by default on Windows. If you don't have a C++ standard library nothing will work. I would concentrate on the standard library symbols first, because the way that works is well-understood by everyone here. Once you get that working you may find a lot of the other stuff goes away. -David -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181212/8b476c43/attachment.html>
Zachary Turner via llvm-dev
2018-Dec-12 20:03 UTC
[llvm-dev] Using LLD to link against third-party libraries? How?
If you want to use the LLVM toolchain in Visual Studio, you should install the extension from here: https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-toolchain After that, set LLVM to be the toolchain in your IDE project settings, don't try doing it from a command prompt. Also, just to re-iterate, use clang-cl.exe instead of clang++.exe. I can help you get a self-host build working (compiling clang and lld using itself), but please try to get an MSVC build working *first*. Since you are having difficulties, it helps to do simpler things first, and once you have that working, move to something more complicated. On Wed, Dec 12, 2018 at 11:34 AM Osman Zakir via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I mentioned the command I used in of my messages in this thread. And of > course I used clang++.exe to do it, not "LLVM". I just meant I was using > LLVM toolchain on the Developer Command Prompt for VS 2017. Anyway, I'm > trying again to build LLVM now. I do have the MSVC compiler toolchain, but > I want to try using the LLVM toolchain in Visual Studio since it's possible > to do so. > ------------------------------ > *From:* David Greene <dag at cray.com> > *Sent:* Thursday, December 13, 2018 12:18 AM > *To:* Osman Zakir > *Cc:* llvm-dev at lists.llvm.org > > *Subject:* Re: [llvm-dev] Using LLD to link against third-party > libraries? How? > Osman Zakir <osmanzakir90 at hotmail.com> writes: > > > LLVM on a Developer Command Prompt. > > I don't know what you mean by that. "LLVM" isn't a command. Can you > post the exact command you use to link? > > > The ones I want to fix first are the ones from Boost and Jinja2Cpp. I > > saw some from those as well. > > I'm not at all familiar with Jinja2Cpp. Is it possible it needs some > explicit template instantiations? > > > If there any standard library ones missing, could it be because I > > couldn't get it to build libcxx? I did try to include that, but it > > seems to be missing. What should I do? > > Are you saying you tried to build libc++ and couldn't? I don't know > what C++ standard library clang uses by default on Windows. If you > don't have a C++ standard library nothing will work. > > I would concentrate on the standard library symbols first, because the > way that works is well-understood by everyone here. Once you get that > working you may find a lot of the other stuff goes away. > > -David > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181212/e57d1238/attachment.html>