<div class="gmail_quote">On 6 March 2010 11:16, Aaron Gray <span dir="ltr"><<a href="mailto:aaronngray.lists@googlemail.com">aaronngray.lists@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div><div></div><div class="h5">On 6 March 2010 10:47, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><br>
On Mar 6, 2010, at 2:44 AM, Aaron Gray wrote:<br>
<br>
><br>
> clang fails with a dynamic linking problem.<br>
<br>
</div>What's the problem? and if you would please file a bug that would be awesome :)<br>
<br>
thanks!<br><font color="#888888"><br></font></blockquote></div></div><div>Eric,</div><div><br></div><div>Neither Cygwin nor MinGW support Dynamic Linking. I am getting the following :-</div><div><br></div><div>
<div>llvm[4]: Compiling CIndexer.cpp for Debug build (PIC)</div><div>/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp: In member functi</div><div>on 'const llvm::sys::Path& CIndexer::getClangPath()':</div>


<div>/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error: 'Dl_in</div><div>fo' was not declared in this scope</div><div>/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error: expect</div>


<div>ed `;' before 'info'</div><div>/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:65: error: 'info'</div><div> was not declared in this scope</div><div>/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:65: error: 'dladd</div>


<div>r' was not declared in this scope</div><div>/home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:68: error: 'info'</div><div> was not declared in this scope</div><div>make[4]: *** [/home/ang/build/llvm-clang/tools/clang/tools/CIndex/Debug/CIndexer</div>


<div>.o] Error 1</div><div>make[4]: Leaving directory `/home/ang/build/llvm-clang/tools/clang/tools/CIndex'</div></div><div><br></div><div>I am hoping I can just not build the indexer and will see if I can get a patch together first for 2.7 before submitting a bug report if I have to.</div>

</div></blockquote><div><br></div><div>Okay here's a patch to no build the CIndexer on Cygwin and MinGW :-</div><div><br></div><div><div>Index: tools/Makefile</div><div>===================================================================</div>

<div>--- tools/Makefile<span class="Apple-tab-span" style="white-space:pre">    </span>(revision 97834)</div><div>+++ tools/Makefile<span class="Apple-tab-span" style="white-space:pre">   </span>(working copy)</div><div>@@ -10,4 +10,9 @@</div>

<div> LEVEL := ../../..</div><div> DIRS := driver CIndex c-index-test</div><div> </div><div>+ifeq ($(OS), $(filter $(OS), Cygwin MingW))</div><div>+DIRS := $(filter $(DIRS), CIndex)</div><div>+DIRS := $(filter $(DIRS), c-index-test)</div>

<div>+endif</div><div>+</div><div> include $(LEVEL)/Makefile.common</div><div><br></div></div><div><br></div><div> </div></div>