Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testee_client gave LNK2019 for compress/decompress/Init #700

Open
ehaerim opened this issue Jan 13, 2018 · 1 comment
Open

testee_client gave LNK2019 for compress/decompress/Init #700

ehaerim opened this issue Jan 13, 2018 · 1 comment

Comments

@ehaerim
Copy link

ehaerim commented Jan 13, 2018

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 ==========

@zaphoyd
Copy link
Owner

zaphoyd commented Jan 14, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants