[LLVMdev] Compile dll on Mingw

NAKAMURA Takumi geek4civic at gmail.com
Wed Sep 1 20:36:39 PDT 2010


Hello, Yuan

> I'm a newbie about llvm. Now, our project need the dynamic link library(dll)
> about all of llvm library, such as libLLVMCore.dll, libLLVMSupport.dll, and
> so on. How should I do?

You may do, "/path/to/configure --enable-shared=yes",
to build LLVM-2.8svn.dll.
On your project, you have to specify to linker,
"-L/path/to/dll -lLLVM-2.8svn"
(maybe with -Wl,--enable-auto-import)

We provide not individual DLLs but a "BIG" one.
We don't provide import libraries.

I think "DLL" feature is still experimental, and I need more feedback.
When you met any troubles with DLL, ask here or file bugs!

Have fun!


...Takumi



More information about the llvm-dev mailing list