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

Fix windows linker errors #120

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Fix windows linker errors #120

merged 1 commit into from
Oct 17, 2018

Conversation

multiprogramm
Copy link
Contributor

@multiprogramm multiprogramm commented Oct 17, 2018

Problem:

  1. Build cppkafka as dll on Windows (MSVS 2015).
  2. Link library to the project with examples/buffered_producer_example.cpp for example.
  3. Build.
Error	LNK2001	unresolved external symbol "public: class std::shared_ptr<class cppkafka::Internal> __thiscall cppkafka::MessageInternal::get_internal(void)const " (?get_internal@MessageInternal@cppkafka@@QBE?AV?$shared_ptr@VInternal@cppkafka@@@std@@XZ)

Error	LNK2001	unresolved external symbol "public: static class std::unique_ptr<class cppkafka::MessageInternal,struct std::default_delete<class cppkafka::MessageInternal> > __cdecl cppkafka::MessageInternal::load(class cppkafka::Message &)" (?load@MessageInternal@cppkafka@@SA?AV?$unique_ptr@VMessageInternal@cppkafka@@U?$default_delete@VMessageInternal@cppkafka@@@std@@@std@@AAVMessage@2@@Z)

Error	LNK2001	unresolved external symbol "public: __thiscall cppkafka::MessageInternal::MessageInternal(void *,class std::shared_ptr<class cppkafka::Internal>)" (??0MessageInternal@cppkafka@@QAE@PAXV?$shared_ptr@VInternal@cppkafka@@@std@@@Z)

@mfontanini
Copy link
Owner

Thanks! PR build failed but that's unrelated.

@mfontanini mfontanini merged commit 2b66fd3 into mfontanini:master Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants