<font size="2"><font face="tahoma,sans-serif">Hi;<br></font></font><br><div class="gmail_quote">On Thu, May 19, 2011 at 7:30 PM, Óscar Fuentes <span dir="ltr"><<a href="mailto:ofv@wanadoo.es">ofv@wanadoo.es</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">arrowdodger <<a href="mailto:6yearold@gmail.com">6yearold@gmail.com</a>> writes:<br>


<br>
> On Thu, May 19, 2011 at 8:28 PM, Óscar Fuentes <<a href="mailto:ofv@wanadoo.es">ofv@wanadoo.es</a>> wrote:<br>
><br>
>> The name liblibclang is forced by an unfortunate collision between MS<br>
>> and GNU name conventions. We can't create clang.dll with MS since we<br>
>> already have clang.exe on the same directory (.pdb, .ilk and possibly<br>
>> other files collide) so we must use some other name for clang.dll, like<br>
>> libclang.dll. Then this produces liblibclang.so on GNU.<br>
>><br>
><br>
> I've wanted to ask earleir, but forgot about it:<br>
> Why we can't produce libclang.dll on Win and clang.so on Unixies?<br>
<br>
</div></div>For the resason explained on the text you didn't quote. The user would<br>
need to be aware of the difference and do:<br>
<br>
if( MSVC )<br>
  target_link_libraries(myproject libclang)<br>
else()<br>
  target_link_libraries(myproject clang)<br>
endif()<br>
<br>
Of course this is not a reason that makes impossible to do what you<br>
suggest. I picked a trade-off. If the consensus is that using different<br>
names is the right thing, it's okay with me. However, I don't accept<br>
reasonings of the type: "since I only work on Linux I don't care about<br>
whatever problems Windows users may have." Please keep in mind that for<br>
MSVC users cmake is the only way of building LLVM/Clang.</blockquote><div><br></div><div>Windows developers are already aware of this problem and can deal with it. The rest of the world including OSX, *BSD, Linux uses libfoo.ext naming. So you are sacrificing all of these for the sake of Windows.</div>

<div><br></div><div>Regards,</div><div>ismail</div><div> </div></div>