Hi,

I'm trying to compile libzmq for Windows 32-bit using Visual C++ 2008, for use 
with pyzmq. I'm using the included vs2008 solution. I've encountered a couple 
of issues, outlined in the comments on this Github issue: 
https://github.com/zeromq/libzmq/issues/1559

The first issue was as follows:

c:\users\sam.lishak\documents\libzmq-master\include\zmq.h(88) : fatal error 
C1083: Cannot open include file: 'stdint.h': No such file or directory

This was solved by replacing lines 75-79 of zmq.h with lines 35-70 of 
stdint.hpp. However, this led to the second issue, which is a load of 
unresolved symbol errors:

1>Linking...
1>   Creating library ../../../../lib/libzmq.lib and object 
../../../../lib/libzmq.exp
1>raw_decoder.obj : error LNK2019: unresolved external symbol "public: 
__thiscall 
zmq::shared_message_memory_allocator::~shared_message_memory_allocator(void)" 
(??1shared_message_memory_allocator@zmq@@QAE@XZ) referenced in function 
__unwindfunclet$??0raw_decoder_t@zmq@@QAE@I@Z$0
1>v2_decoder.obj : error LNK2001: unresolved external symbol "public: 
__thiscall 
zmq::shared_message_memory_allocator::~shared_message_memory_allocator(void)" 
(??1shared_message_memory_allocator@zmq@@QAE@XZ)
1>raw_decoder.obj : error LNK2019: unresolved external symbol "public: 
__thiscall 
zmq::shared_message_memory_allocator::shared_message_memory_allocator(unsigned 
int,unsigned int)" (??0shared_message_memory_allocator@zmq@@QAE@II@Z) 
referenced in function "public: __thiscall 
zmq::raw_decoder_t::raw_decoder_t(unsigned int)" (??0raw_decoder_t@zmq@@QAE@I@Z)
1>raw_decoder.obj : error LNK2019: unresolved external symbol "public: unsigned 
int __thiscall zmq::shared_message_memory_allocator::size(void)const " 
(?size@shared_message_memory_allocator@zmq@@QBEIXZ) referenced in function 
"public: virtual void __thiscall zmq::raw_decoder_t::get_buffer(unsigned char * 
*,unsigned int *)" (?get_buffer@raw_decoder_t@zmq@@UAEXPAPAEPAI@Z)
1>v2_decoder.obj : error LNK2001: unresolved external symbol "public: unsigned 
int __thiscall zmq::shared_message_memory_allocator::size(void)const " 
(?size@shared_message_memory_allocator@zmq@@QBEIXZ)
1>raw_decoder.obj : error LNK2019: unresolved external symbol "public: unsigned 
char * __thiscall zmq::shared_message_memory_allocator::allocate(void)" 
(?allocate@shared_message_memory_allocator@zmq@@QAEPAEXZ) referenced in 
function "public: virtual void __thiscall 
zmq::raw_decoder_t::get_buffer(unsigned char * *,unsigned int *)" 
(?get_buffer@raw_decoder_t@zmq@@UAEXPAPAEPAI@Z)
1>v2_decoder.obj : error LNK2001: unresolved external symbol "public: unsigned 
char * __thiscall zmq::shared_message_memory_allocator::allocate(void)" 
(?allocate@shared_message_memory_allocator@zmq@@QAEPAEXZ)
1>raw_decoder.obj : error LNK2019: unresolved external symbol "public: unsigned 
char * __thiscall zmq::shared_message_memory_allocator::release(void)" 
(?release@shared_message_memory_allocator@zmq@@QAEPAEXZ) referenced in function 
"public: virtual int __thiscall zmq::raw_decoder_t::decode(unsigned char const 
*,unsigned int,unsigned int &)" (?decode@raw_decoder_t@zmq@@UAEHPBEIAAI@Z)
1>raw_decoder.obj : error LNK2019: unresolved external symbol "public: static 
void __cdecl zmq::shared_message_memory_allocator::call_dec_ref(void *,void *)" 
(?call_dec_ref@shared_message_memory_allocator@zmq@@SAXPAX0@Z) referenced in 
function "public: virtual int __thiscall zmq::raw_decoder_t::decode(unsigned 
char const *,unsigned int,unsigned int &)" 
(?decode@raw_decoder_t@zmq@@UAEHPBEIAAI@Z)
1>v2_decoder.obj : error LNK2001: unresolved external symbol "public: static 
void __cdecl zmq::shared_message_memory_allocator::call_dec_ref(void *,void *)" 
(?call_dec_ref@shared_message_memory_allocator@zmq@@SAXPAX0@Z)
1>session_base.obj : error LNK2019: unresolved external symbol "public: 
__thiscall zmq::socks_connecter_t::socks_connecter_t(class zmq::io_thread_t 
*,class zmq::session_base_t *,struct zmq::options_t const &,struct 
zmq::address_t *,struct zmq::address_t *,bool)" 
(??0socks_connecter_t@zmq@@QAE@PAVio_thread_t@1@PAVsession_base_t@1@ABUoptions_t@1@PAUaddress_t@1@3_N@Z)
 referenced in function "private: void __thiscall 
zmq::session_base_t::start_connecting(bool)" 
(?start_connecting@session_base_t@zmq@@AAEX_N@Z)
1>socket_base.obj : error LNK2019: unresolved external symbol "public: 
__thiscall zmq::client_t::client_t(class zmq::ctx_t *,unsigned int,int)" 
(??0client_t@zmq@@QAE@PAVctx_t@1@IH@Z) referenced in function "public: static 
class zmq::socket_base_t * __cdecl zmq::socket_base_t::create(int,class 
zmq::ctx_t *,unsigned int,int)" 
(?create@socket_base_t@zmq@@SAPAV12@HPAVctx_t@2@IH@Z)
1>socket_base.obj : error LNK2019: unresolved external symbol "public: 
__thiscall zmq::server_t::server_t(class zmq::ctx_t *,unsigned int,int)" 
(??0server_t@zmq@@QAE@PAVctx_t@1@IH@Z) referenced in function "public: static 
class zmq::socket_base_t * __cdecl zmq::socket_base_t::create(int,class 
zmq::ctx_t *,unsigned int,int)" 
(?create@socket_base_t@zmq@@SAPAV12@HPAVctx_t@2@IH@Z)
1>socket_base.obj : error LNK2019: unresolved external symbol "public: 
__thiscall zmq::mailbox_safe_t::mailbox_safe_t(class zmq::mutex_t *)" 
(??0mailbox_safe_t@zmq@@QAE@PAVmutex_t@1@@Z) referenced in function "protected: 
__thiscall zmq::socket_base_t::socket_base_t(class zmq::ctx_t *,unsigned 
int,int,bool)" (??0socket_base_t@zmq@@IAE@PAVctx_t@1@IH_N@Z)
1>socket_base.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall zmq::mailbox_safe_t::add_signaler(class zmq::signaler_t *)" 
(?add_signaler@mailbox_safe_t@zmq@@QAEXPAVsignaler_t@2@@Z) referenced in 
function "public: int __thiscall zmq::socket_base_t::add_signaler(class 
zmq::signaler_t *)" (?add_signaler@socket_base_t@zmq@@QAEHPAVsignaler_t@2@@Z)
1>socket_base.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall zmq::mailbox_safe_t::remove_signaler(class zmq::signaler_t *)" 
(?remove_signaler@mailbox_safe_t@zmq@@QAEXPAVsignaler_t@2@@Z) referenced in 
function "public: int __thiscall zmq::socket_base_t::remove_signaler(class 
zmq::signaler_t *)" (?remove_signaler@socket_base_t@zmq@@QAEHPAVsignaler_t@2@@Z)
1>v2_decoder.obj : error LNK2019: unresolved external symbol "public: 
__thiscall 
zmq::shared_message_memory_allocator::shared_message_memory_allocator(unsigned 
int)" (??0shared_message_memory_allocator@zmq@@QAE@I@Z) referenced in function 
"public: __thiscall zmq::v2_decoder_t::v2_decoder_t(unsigned int,__int64)" 
(??0v2_decoder_t@zmq@@QAE@I_J@Z)
1>v2_decoder.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall zmq::shared_message_memory_allocator::inc_ref(void)" 
(?inc_ref@shared_message_memory_allocator@zmq@@QAEXXZ) referenced in function 
"private: int __thiscall zmq::v2_decoder_t::size_ready(unsigned 
__int64,unsigned char const *)" (?size_ready@v2_decoder_t@zmq@@AAEH_KPBE@Z)
1>v2_decoder.obj : error LNK2019: unresolved external symbol "public: unsigned 
char * __thiscall zmq::shared_message_memory_allocator::data(void)" 
(?data@shared_message_memory_allocator@zmq@@QAEPAEXZ) referenced in function 
"private: int __thiscall zmq::v2_decoder_t::size_ready(unsigned 
__int64,unsigned char const *)" (?size_ready@v2_decoder_t@zmq@@AAEH_KPBE@Z)
1>v2_decoder.obj : error LNK2019: unresolved external symbol "public: void 
__thiscall zmq::shared_message_memory_allocator::deallocate(void)" 
(?deallocate@shared_message_memory_allocator@zmq@@QAEXXZ) referenced in 
function "public: virtual __thiscall zmq::decoder_base_t<class 
zmq::v2_decoder_t,class 
zmq::shared_message_memory_allocator>::~decoder_base_t<class 
zmq::v2_decoder_t,class zmq::shared_message_memory_allocator>(void)" 
(??1?$decoder_base_t@Vv2_decoder_t@zmq@@Vshared_message_memory_allocator@2@@zmq@@UAE@XZ)
1>../../../../lib/libzmq.dll : fatal error LNK1120: 16 unresolved externals

I'm not sure how to proceed with this. Any help would be greatly appreciated.

Cheers,


Sam


Sam Lishak
Simulation & Modelling Engineer

T: 01908279709
E: [email protected]<mailto:[email protected]>
Red Bull Technology
Building 1, Bradbourne Drive
Tilbrook, Milton Keynes, UK
MK7 8BJ
[http://paddock/_layouts/images/email_signature.jpg]<http://www.infiniti-redbullracing.com/>
Red Bull Technology Limited is a company registered in England and Wales under 
number 05202976 and whose registered office is Building 1, Bradbourne Drive, 
Tilbrook, Milton Keynes, MK7 8BJ Please note, Red Bull Technology Limited only 
enter into contracts with suppliers based on Red Bull Technology Terms and 
Conditions of Purchase, copies of which are available on request.This e-mail is 
confidential and may contain valuable information. If you are not the intended 
recipient, you should not copy it, re-transmit it, use it or disclose its 
contents, but should return it to the sender immediately and delete your copy 
from your system.


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to