Hi,  <span>NAKAMURA Takumi</span><br><br>Thank you, and thanks for your answer.<br><br>1.First of all, I test it on Linux . As you said, I have attempted to do,<br> "/path/to/configure --enable-shared=yes" on ubuntu9.10. <br>
After compiling, it generates lots of static libraries(.a) and only three <br>shared library(.so) , libLTO.so,  LLVMHello.so,  profile_rt.so. Is there<br>anyone which is the "BIG" one as you said?  <br><br>2.And I find it seems that the option of "--enable-shared=yes" is defult<br>
option. Command: $ ./configure --help ,  it will display this message:<br>--------------------------------------------------------------------------------------------------<br>Optional Features:<br>....<br>--enable-shared[=PKGS]  build shared libraries<br>
                                     <span style="color: rgb(204, 0, 0);"> [default=yes]</span><br>....<br>--------------------------------------------------------------------------------------------------<br>I don't know if I consider is right?  <br>
<br>3.By the way, my work environment:<br>OS : Ubuntu9.10<br>VirtualBox virtual machion<br>Virtual OS:  Windows XP<br>Compile environment:   MinGW and MSYS.<br>Our need is that: Compile a dynamic module with LLVM on MinGW,<br>
                         So, we need dynamic library of LLVM, that is ".dll" files.<br>If you compile LLVM on MinGW ever before? If there is some process<br>about it ?  Thanks. <br><br>4.On MinGW, we configure with "--enable-shared=yes" and compile,<br>
but there is no ".dll" file generate. These are some advice on other websites.<br>For instance,  using the tool of "cmake", when configure, add the macro<br>-DBUILD_SHARED_LIBS=ON.  With this method, it generates some<br>
".dll.a" files --- libLLVMCore.dll.a  libLLVMSupport.dll.a  libLLVMSystem.dll.a.<br>Meanwhile, it would also appear lot's of errors.<br>What library types of "dll.a" file? Static or dynamic?  If this method feasible£¿<br>
<br>Sorry for those plenty of questions, expect your answer, thanks.<br><br><br>Thanks,<br>yuanzheng.<br><br><div class="gmail_quote">2010/9/2 NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com">geek4civic@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello, Yuan<br>
<div class="im"><br>
> I'm a newbie about llvm. Now, our project need the dynamic link library(dll)<br>
> about all of llvm library, such as libLLVMCore.dll, libLLVMSupport.dll, and<br>
> so on. How should I do?<br>
<br>
</div>You may do, "/path/to/configure --enable-shared=yes",<br>
to build LLVM-2.8svn.dll.<br>
On your project, you have to specify to linker,<br>
"-L/path/to/dll -lLLVM-2.8svn"<br>
(maybe with -Wl,--enable-auto-import)<br>
<br>
We provide not individual DLLs but a "BIG" one.<br>
We don't provide import libraries.<br>
<br>
I think "DLL" feature is still experimental, and I need more feedback.<br>
When you met any troubles with DLL, ask here or file bugs!<br>
<br>
Have fun!<br>
<font color="#888888"><br>
<br>
...Takumi<br>
</font></blockquote></div><br>