<div dir="ltr">_MT has no effect; same errors.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 2:19 PM, Joshua Gerrard <span dir="ltr"><<a href="mailto:joshua.gerrard@roli.com" target="_blank">joshua.gerrard@roli.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also try defining _MT</div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><p dir="ltr">--<br> Joshua Gerrard<br> JUCE Software Developer<br></p><p dir="ltr"> The Seaboard GRAND is a breakthrough new musical instrument called “the piano of the future” (CNN) and “influential, innovative, and inspiring” and “ingenious” (Telegraph). With orders from 34 countries, the Seaboard GRAND is now shipping and available for sale at <a href="http://www.roli.com/seaboard" target="_blank"><font color="#1155cc">www.roli.com/seaboard</font></a><br></p><p dir="ltr">Office: <a href="tel:%2B44%280%29207%20254%202155" value="+442072542155" target="_blank"><font color="#1155cc">+44(0)207 254 2155</font></a><br> Cell:    07885 557494<br><br></p><p dir="ltr">ROLI<br> 2 Glebe Road, London E8 4BD<br><a href="http://www.roli.com/" target="_blank"><font color="#1155cc">www.roli.com</font></a><br></p><p dir="ltr">Discover more about us on Facebook - Twitter - Youtube</p><p dir="ltr">ROLI Ltd. is a registered company in England and Wales, and this e-mail and its attachment(s) are intended for the above named only and are confidential. If they have come to you in error then you must take no action based upon them but contact us immediately. Any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. Although this e-mail and its attachments are believed to be free of any virus, it is the responsibility of the recipient to ensure that they are virus free. If you contact us by e-mail then we will store your name and address to facilitate communications. Any statements contained herein are those of the individual and not the organisation.<br><br></p></div></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On 11 September 2015 at 23:49, Russell Wallace via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>That almost works. What am I still missing? I tried -g but no effect.</div><div><br></div><div>C:\t>clang -D_DEBUG -I/llvm/build/include -I/llvm/include -S -emit-llvm -fms-compatibility-version=19 a.cpp</div><span><div><br></div><div>C:\t>clang a.ll \llvm\build\Debug\lib\*.lib</div><div>warning: overriding the module target triple with x86_64-pc-windows-msvc18.0.0 [-Woverride-module]</div><div>1 warning generated.</div></span><div>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library</div><div>LLVMSupport.lib(TargetParser.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW</div><div>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW</div><div>libcpmtd.lib(syserror.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW</div><div>LLVMSupport.lib(ConvertUTFWrapper.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW</div><div>LLVMSupport.lib(Host.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW</div><div>LLVMSupport.lib(MemoryBuffer.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW</div><div>etc...</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 9:14 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You're crossing the relase/debug MSVC CRT streams. Make sure all objects in a given image are using the same CRT.<div><br></div><div>In your specific example, you should add -D_DEBUG to the command line. You want to simulate the effect of passing /MTd to cl.exe or clang-cl.exe.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Sep 11, 2015 at 10:07 AM, Russell Wallace via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I'm trying to compile some code via IR and link it with the debug libraries on Windows, but getting errors. A minimal test case:<br><div><br></div><div><div>C:\t>type a.cpp</div><div>#define _HAS_EXCEPTIONS 0</div><div>#include <llvm/Support/Signals.h></div><div><br></div><div>int main() {</div><div>  llvm::sys::PrintStackTraceOnErrorSignal();</div><div>  return 0;</div><div>}</div><div><br></div><div>C:\t>clang -I/llvm/build/include -I/llvm/include -S -emit-llvm -fms-compatibility-version=19 a.cpp</div><div><br></div><div>C:\t>clang a.ll \llvm\build\Debug\lib\*.lib</div><div>warning: overriding the module target triple with x86_64-pc-windows-msvc18.0.0 [-Woverride-module]</div><div>1 warning generated.</div><div>LLVMSupport.lib(Signals.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in a-db717b.o</div><div>LLVMSupport.lib(Signals.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MT_StaticRelease' in a-db717b.o</div><div>LLVMSupport.lib(Path.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in a-db717b.o</div><div>LLVMSupport.lib(Path.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MT_StaticRelease' in a-db717b.o</div><div>LLVMSupport.lib(raw_ostream.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in a-db717b.o</div></div><div>...etc...</div><div><br></div><div>There's probably an option that I'm missing?<br></div></div>
<br></div></div><span>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>