<div class="gmail_quote">On Sat, Apr 7, 2012 at 11:58 PM, Alan Garny <span dir="ltr"><<a href="mailto:agarny@hellix.com">agarny@hellix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Óscar Fuentes <<a href="mailto:ofv@wanadoo.es">ofv@wanadoo.es</a>> writes:<br>
> Michael Spencer <bigcheesegs at <a href="http://gmail.com" target="_blank">gmail.com</a>> writes:<br>
> > The problem is that MSVC++ requires sprinkling<br>
> > __declspec(dllexport/dllimport) all over the code, and we really don't<br>
> > want to deal with maintaining that, as most developers have little to<br>
> > no experience with Windows DLLs.<br>
><br>
> BTW, you don't put __declspec(dllexport) / __declspec(dllimport) on the<br>
> code, but macros that alternatively expand to those declspecs depending<br>
> on if the library is being compiled or referenced.<br>
<br>
I have just realised that I directly replied to Michael rather than the<br>
mailing list (!!), but it was to say the same as Óscar with regards to the<br>
use of a macro. In fact, I am thinking of taking this approach for the<br>
classes that I need in my project. Still, it will mean 'hacking' the code<br>
myself, and I really wish I didn't have to go that route, but... what other<br>
choice do I have if I want to use MSVC?...<br></blockquote><div><br></div><div>Until this is resolved, why not statically link?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
> Yeah, I tried that too. AFAIK the 2^16 symbol limitation on the VS<br>
> linker applies to .def files in general, not just when exporting by<br>
> ordinal. One problem I found was to differentiate the relevant stuff<br>
> from the junk while deciding what to put on the .def file. I find it<br>
> hard to believe that any LLVM library exports 65000 symbols. Maybe<br>
> fine-tuning the symbol filtering the .def files could be used regardless<br>
> the 2^16 limit, altough generating those .def files would never be as<br>
> reliable as putting the declarations on the source code, IMO.<br>
<br>
FWIW, using MinGW, I end up with a DLL with 13,320 symbols. Still, I agree<br>
with Óscar, this wouldn't be as reliable as using a macro (not to mention<br>
that maintenance could be a bit of a nightmare).<br>
<br>
Alan<br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>