You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to compile and link one of your websocket++ examples called testee_client.
I am getting the following link error and I couldn't figure out how to fix it. They seem to be about
compress, decompress, Init, etc. Please help.
Compiler: VC++ 2017 Build 15.5.3
OS: Windows 7 64-bit
1>------ Build started: Project: testee_client, Configuration: Debug Win32 ------
1>testee_client.cpp
1>testee_client.obj : error LNK2019: unresolved external symbol _deflate referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::compress(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > &)" (?compress@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@abv?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@6@AAV76@@z)
1>testee_client.obj : error LNK2019: unresolved external symbol _deflateEnd referenced in function "public: __thiscall websocketpp::extensions::permessage_deflate::enabled::~enabled(void)" (??1?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE@XZ)
1>testee_client.obj : error LNK2019: unresolved external symbol _inflate referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::decompress(unsigned char const *,unsigned int,class std::basic_string<char,struct std::char_traits,class std::allocator > &)" (?decompress@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@PBEIAAV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@6@@z)
1>testee_client.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function "public: __thiscall websocketpp::extensions::permessage_deflate::enabled::~enabled(void)" (??1?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE@XZ)
1>testee_client.obj : error LNK2019: unresolved external symbol deflateInit2 referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::init(bool)" (?init@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@_N@Z)
1>testee_client.obj : error LNK2019: unresolved external symbol inflateInit2 referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::init(bool)" (?init@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@_N@Z)
1>F:\InvestWare\src64\websocketpp-master\examples\testee_client\vc2010\testee_client\Debug\testee_client.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project "testee_client.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The text was updated successfully, but these errors were encountered:
In order to use compression/permessage deflate extension you will need to link to the zlib library. All the unresolved symbols referenced here are in that library.
Dear Peter Thorson
I have been trying to compile and link one of your websocket++ examples called testee_client.
I am getting the following link error and I couldn't figure out how to fix it. They seem to be about
compress, decompress, Init, etc. Please help.
Compiler: VC++ 2017 Build 15.5.3
OS: Windows 7 64-bit
1>------ Build started: Project: testee_client, Configuration: Debug Win32 ------
1>testee_client.cpp
1>testee_client.obj : error LNK2019: unresolved external symbol _deflate referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::compress(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > &)" (?compress@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@abv?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@6@AAV76@@z)
1>testee_client.obj : error LNK2019: unresolved external symbol _deflateEnd referenced in function "public: __thiscall websocketpp::extensions::permessage_deflate::enabled::~enabled(void)" (??1?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE@XZ)
1>testee_client.obj : error LNK2019: unresolved external symbol _inflate referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::decompress(unsigned char const *,unsigned int,class std::basic_string<char,struct std::char_traits,class std::allocator > &)" (?decompress@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@PBEIAAV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@6@@z)
1>testee_client.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function "public: __thiscall websocketpp::extensions::permessage_deflate::enabled::~enabled(void)" (??1?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE@XZ)
1>testee_client.obj : error LNK2019: unresolved external symbol deflateInit2 referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::init(bool)" (?init@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@_N@Z)
1>testee_client.obj : error LNK2019: unresolved external symbol inflateInit2 referenced in function "public: class std::error_code __thiscall websocketpp::extensions::permessage_deflate::enabled::init(bool)" (?init@?$enabled@Upermessage_deflate_config@deflate_config@@@permessage_deflate@extensions@websocketpp@@QAE?AVerror_code@std@@_N@Z)
1>F:\InvestWare\src64\websocketpp-master\examples\testee_client\vc2010\testee_client\Debug\testee_client.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project "testee_client.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The text was updated successfully, but these errors were encountered: