<div dir="ltr">Hello all!<div><br></div><div>Please forgive me if this is the wrong mailing list for my question.</div><div><br></div><div>First off, I am on Windows and using git bash for everything:</div><div><br><div>$ uname</div><div>MINGW32_NT-6.2</div><div><br></div><div>I am attempting to essentially do the kalidescope example. I have copied the code verbatim from the full code listing and am running the following command:</div><div><br></div><div>$ clang-cl toy.cpp deps/llvm/build/Debug/lib/*.lib //MDd -o toy.exe -I deps/llvm/include</div><div><br></div><div>Which results in this error:</div><div><br></div><div>LLVMSupport.lib(Path.obj) : error LNK2019: unresolved external symbol __imp_CoTaskMemFree referenced in function "bool __cdecl</div><div>llvm::sys::path::getKnownFolderPath(struct _GUID,class llvm::SmallVectorImpl<char> &)" (?getKnownFolderPath@path@sys@llvm@@YA_N</div><div>U_GUID@@AEAV?$SmallVectorImpl@D@3@@Z)</div><div>toy.exe : fatal error LNK1120: 1 unresolved externals</div><div><br></div><div>I've tried simplifying things but no matter what I do that is the error I get. So I'm assuming I'm not building llvm correctly. Here is essentially what I'm doing:</div><div><br>$ cd deps</div><div>$ git clone <a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a><br>$ mkdir llvm/build && cd llvm/build<br>$ cmake .. -G "Visual Studio 2012 Win64"<br>$ cmake --build .<br><br>That builds for quite a while but eventually appears to succeed without any errors. I had to manually copy a few files that were transformed but not copied to where there were expected to be but after figuring that my code appears to compile except for the missing getKnowFolderPath function.</div><div><br></div><div>What's really strange is that I see that function in the code, Path.inc. I can't seem to figure out why this function would be unresolvable. </div><div><br></div><div>Can anyone here help me figure out what I'm doing wrong? I'm assuming there is some define or other flag that I need to specify to get linking correctly.</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><a href="http://justinmchase.com" target="_blank">http://justinmchase.com</a></div></div></div>
</div></div>