[zeromq-dev] Static linking issue on Win32.
Kelly Brock
Kerby at inocode.com
Mon Aug 30 14:36:41 CEST 2010
Hi Martin,
> Hi Kelly,
>
> > Basically, the problem is if you declare the functions using
> > __declspec but when you actually define them in the cpp's without
> > __declspec, the call style is going to be different. With the
> > ZMQ_STATIC_BUILD set, it just removes the __declspec like other
> platforms
> > which fixes up the calling conventions properly.
>
> What about doing it other way round, ie. using declspec for both
> definition and declaration? Would that get us rid of need for extra
> ZMQ_STATIC_BUILD setting?
>
> And would the result be linkable both statically and dynamically?
Yes, that should work, I just didn't want to go through and make
that many changes. I can of course pull down another branch and do that
work if you would like.
KB
More information about the zeromq-dev
mailing list