HBPVIS / ZeroEQ

Cross-platform C++ library for fast binary and REST messaging
https://hbpvis.github.io/
Other
41 stars 25 forks source link

Added static_cast to int and missing macros #244

Closed gonkc closed 6 years ago

gonkc commented 6 years ago

Hello, I'm Gonzalo Bayo, from the group working back in URJC/UPM with Pablo Toharia. Right now I would like to use ZeroEQ in a custom C++ project in Windows (VC14) and '/ZeroEQ/zeroeq/http/requestHandler.cpp' doesn't compile. I have got the error: C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data. This error can be fixed casting 'size_t' to 'int' in the same file. Also, test projects are not linking successfully ( errors LNK2001, LNK2019 and LNK1120 ) due a missing macros in some functions of ZeroEQ and ZeroEQHTTP projects. This error can be fixed using appropriated macros (ZEROEQ_API and ZEROEQHTTP_API) in each case. Regards