<div dir="ltr">Tried that, still didn't work. Then I tried making a direct API call,<div><br></div><div>GetProcAddress(GetModuleHandle(0),"foo")<br></div><div><br></div><div>And this works if and only if __declspec(dllexport) is supplied. So it looks like we were both right.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 2, 2016 at 9:29 AM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.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">Have you tried to add dllexport?</div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Sat, Apr 2, 2016 at 4:23 PM Russell Wallace via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I've finally managed to extract from Kaleidoscope one particular thing that it seems to me should be working and isn't. Given the global declaration<div><br></div><div><div>extern "C" void foo() {}</div></div><div><br></div><div>within the same program I have</div><div><br></div><div>RTDyldMemoryManager::getSymbolAddressInProcess("foo")<br></div><div><br></div><div>And it's returning null. (LLVM 3.8, Windows 7 x64.) What am I missing?</div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</blockquote></div><br></div>