<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 22, 2016, at 7:44 AM, Stephen Celis via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi all,</div><div class=""><br class=""></div><div class="">I've also been having trouble getting a Swift interface to LLVM's C API. The basic gist is here:</div><div class=""><br class=""></div><div class=""><a href="https://gist.github.com/stephencelis/5de13eeb9743e7a3aed3" class="">https://gist.github.com/stephencelis/5de13eeb9743e7a3aed3</a></div><div class=""><br class=""></div><div class="">I've:</div><div class=""><br class=""></div><div class="">- Installed LLVM via homebrew, so it lives in "/usr/local/opt/llvm" (I've also built LLVM myself and have the same ).</div><div class="">- Passed "-I" and "-L" to send includes/lib paths to the "-Xcc" and "-Xlinker" flags. (Can a module map or package be configured directly with these paths? Or do all dependent projects need to use these flags, as well?</div><div class="">- Added many more LLVM headers/links to the module map and continued to have the same issue.</div><div class=""><br class=""></div><div class="">The linker's still having trouble. I'm probably missing something very basic.</div></div></div></blockquote><br class=""></div><div>Did you forget to actually link to libLLVMCore? I see your -L flags in that build log, but I don't see anything like `-Xlinker -lLLVMCore`. </div><br class=""><div class=""><br class=""></div><div class="">-- </div><div class="">Greg Parker <a href="mailto:gparker@apple.com" class="">gparker@apple.com</a> Runtime Wrangler</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>