[zeromq-dev] Static linking issue on Win32.
Kerby at inocode.com
Mon Aug 30 20:47:37 CEST 2010
> On 08/30/2010 08:18 PM, Kelly Brock wrote:
> > Hi Martin,
> > Just as a note, there is still a bit of an issue though it's just
> > warnings. Basically if you have the decl's and just statically link you
> > a whole slew of linker warnings about "locally defined function
> > blah, blah. This is not a horrible thing but it is annoying. The only
> > I can see to fix it is to go with the original suggestion of just
> > the declspec's completely for a static build via a define.
> Warnings are annoying, but having to add a random define is even more
> so. What about adding two new configurations to the MSVC project. So
> we'll have:
> Dynamic Debug
> Dynamic Release
> Static Debug
> Static Release
> The latter two would have the constant defined.
Yes, the separate projects answer is definitely preferable to me
since you wouldn't be able to use the current projects for a static lib
anyway. I'm currently doing things this way in my little testbed app which
I build projects for with premake4. This just let's me verify dll/static
builds, osx/linux etc without a lot of muckin about, not that I'm trying to
push the premake stuff, it's just useful for quick x-plat test runs.
More information about the zeromq-dev