[cfe-dev] Linking errors in clang VS2013 (HEAD revision)

Nikola Smiljanic popizdeh at gmail.com
Mon Jun 9 19:34:44 PDT 2014


Hi Kim, please keep the discussion in one thread.

It seems that you're missing a dependency, add LLVMProfileData.lib to your
linker settings.


On Tue, Jun 10, 2014 at 12:47 AM, Kim <soldoutseashell at gmail.com> wrote:

> After some more experimenting I've realized that the linking errors happen
> even in a completely fresh project the moment you call the
> ExecuteCompilerInvocation function.
>
> I've uploaded a simple VS2013 solution/project that should make the
> problem easily reproducible here:
> https://dl.dropboxusercontent.com/u/1735585/Win32Project1.rar
>
> I would really appreciate it if someone using VS2013 could attempt to
> build it using the head revision of clang/llvm and see if you can reproduce
> the problem. You just need to change the includes to point to your own
> fresh clang/llvm source folders and build folder and change the library
> directory location.
>
> Steps to reproduce:
>
> Created fresh checkout folder for clang
> Created fresh checkout folder for LLVM
> Ran Cmake to generate fresh LLVM project files
> Compiled LLVM + clang without problems
> Created fresh win32 project in VS2013
> Add clang/llvm includes and lib directory under debug config
> Call ExecuteCompilerInvocation function in source code (if you comment out
> this call it links without errors)
>
> Thank you very much for your time
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140610/8e6442ae/attachment.html>


More information about the cfe-dev mailing list