<div dir="ltr">You need to use LIBLLDB_API instead of __declspec(export).  Otherwise someone linking against liblldb and trying to call this won't work correctly.  Check the annotation given to the classes in the SB headers for the exact name of the macro.</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 11, 2015 at 6:23 PM Chaoren Lin <<a href="mailto:chaorenl@google.com">chaorenl@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This revision was automatically updated to reflect the committed changes.<br>
Closed by commit rL244710: Export snprintf to avoid linking error with liblldb on Windows. (authored by chaoren).<br>
<br>
Changed prior to commit:<br>
  <a href="http://reviews.llvm.org/D11967?vs=31884&id=31896#toc" rel="noreferrer" target="_blank">http://reviews.llvm.org/D11967?vs=31884&id=31896#toc</a><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D11967" rel="noreferrer" target="_blank">http://reviews.llvm.org/D11967</a><br>
<br>
Files:<br>
  lldb/trunk/include/lldb/Host/windows/win32.h<br>
<br>
Index: lldb/trunk/include/lldb/Host/windows/win32.h<br>
===================================================================<br>
--- lldb/trunk/include/lldb/Host/windows/win32.h<br>
+++ lldb/trunk/include/lldb/Host/windows/win32.h<br>
@@ -65,7 +65,8 @@<br>
 int strncasecmp(const char* s1, const char* s2, size_t n);<br>
<br>
 #if _MSC_VER < 1900<br>
-int snprintf(char *buffer, size_t count, const char *format, ...);<br>
+int __declspec(dllexport)<br>
+snprintf(char *buffer, size_t count, const char *format, ...);<br>
 #endif<br>
<br>
 #define STDIN_FILENO  0<br>
<br>
<br>
</blockquote></div>