<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57144>57144</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lld-link: Undefined symbol llvm::LLVMContext
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          H3XAGON
      </td>
    </tr>
</table>

<pre>
    Hi, I have my project set up using Visual Studio 2022. My platform toolset is set to LLVM (clang-cl) and the include path is set correctly. My code for now looks something like this:

```
#include <llvm/IR/IRBuilder.h>

static llvm::LLVMContext context;
static llvm::IRBuilder<> Builder();
static std::unique_ptr<llvm::Module> _module;
static std::map<std::string, llvm::Value*> namedValues;
```

But when I compile I get the following three errors (I use the APInt class somewhere else as well which is why one of the errors references it): 

![image](https://user-images.githubusercontent.com/17811155/184550578-87edbea2-bd96-4ccc-a4af-247f26b42739.png)

Are there any additional libraries that I need to link?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1VE1v2zAM_TX2hXBgy3biHHxIunUr0G7DhhW7FbJFx1plKZPkZvn3o5Sk7YoNEGR9kI_ke5Q7I47tR5mwK7iBkT8hTEfYW_MTew8OPcx7mJ3UO7iXbuYKvvlZSAMsZ2wBd2SruB-MncAbo4KDdNHPG7i9vb-DhDW94nqX9Spha-BagB8RpO7VLBD23I8Xl95YS2HVMQL3hq4JGbQ5gDLmkYzMhH4MySj5iIQjXVJukvxdkl_mZX4epy0rL4GS8kqppylh1zdf47SdpRJoF2NSvn8N4Tz3sodoTODlJpRxZbTH3yHF-E3K7X-Mn3EpHgHDZccaqv6tm_Pi5DVr-WvGh723lzTj8Z0Rs8IA8zCdl_8BmPiePJ-3zltiKYj6AnbP1YwJ2wQ4zScU8cA9Q76lLs7b2cNhRE3N0ZtpLxXSahfkHYM4SplDkMOPFhHQWmNdUPyGegajzebLjSbaFHcn-QjMkiV1CnAHB1SK8GUfe-AwHsFoBDNE1zOcxYFcdI8OpI8kbuAvyVmR1Fs58R0m9TsKPnq_j33BrmlQIjaLt26xk36cu3ASddR-QUWRTbFqiqKo67BsqrrO61WTNSsUHXKWdWK9zKq-7zNe8SFj1Wpgy65iq3K92AeW16_T2dhYOM1cH4ELIb00mh6Okp3lVlIZfuSeaNSIIjwTJfVjUl6f3FNsi-Uyr3O2bPJUtKVYl2ueeukVtkqJ7GS9ge9a4CA1Qbjj1Bn174ZNZ6vavwk5kXCu_Pwkwic7v3raSudCZ7DrelVUVTq2rGeiKJtlVQxNJfK873i9XHfIxDAMomhSxTvStCUhEsY0HiBC0JokSWUb_hZ5U1TEblmUi0LwnPOCccLl1dAkVY4Tl2oR8lgYu0ttG1Pq5p2jSyWddy-X1EtyR-zFcITPZz8a234sf2w-fP6UxtBtTP0P_e2Ilg">