{"action":"created","issue":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/1678","repository_url":"https://api.github.com/repos/edenhill/librdkafka","labels_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1678/labels{/name}","comments_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1678/comments","events_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1678/events","html_url":"https://github.com/edenhill/librdkafka/issues/1678","id":295493610,"number":1678,"title":"unresolved ___iob_func for Visual Studio 2015","user":{"login":"borneq","id":757493,"avatar_url":"https://avatars3.githubusercontent.com/u/757493?v=4","gravatar_id":"","url":"https://api.github.com/users/borneq","html_url":"https://github.com/borneq","followers_url":"https://api.github.com/users/borneq/followers","following_url":"https://api.github.com/users/borneq/following{/other_user}","gists_url":"https://api.github.com/users/borneq/gists{/gist_id}","starred_url":"https://api.github.com/users/borneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borneq/subscriptions","organizations_url":"https://api.github.com/users/borneq/orgs","repos_url":"https://api.github.com/users/borneq/repos","events_url":"https://api.github.com/users/borneq/events{/privacy}","received_events_url":"https://api.github.com/users/borneq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T12:26:57Z","updated_at":"2018-02-08T15:40:09Z","closed_at":null,"author_association":"NONE","body":"I have download librdkafka-0.11.3.zip and open win32/librdkafka.sln.\r\nI have installed Win32OpenSSL-1_0_2n.exe in c:\\OpenSSL-Win32.\r\nNext, I try build librdkafka project. I have add legacy_stdio_definitions.lib and conditional _NO_CRT_STDIO_INLINE but this not helps.\r\nI got errors:\r\nError\tLNK2001\tunresolved external symbol ___iob_func\tlibrdkafka\tD:\\kod\\kafka\\librdkafka\\win32\\libeay32MT.lib(cryptlib.obj)\t1\t\r\n"},"comment":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/comments/364150850","html_url":"https://github.com/edenhill/librdkafka/issues/1678#issuecomment-364150850","issue_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1678","id":364150850,"user":{"login":"edenhill","id":524990,"avatar_url":"https://avatars0.githubusercontent.com/u/524990?v=4","gravatar_id":"","url":"https://api.github.com/users/edenhill","html_url":"https://github.com/edenhill","followers_url":"https://api.github.com/users/edenhill/followers","following_url":"https://api.github.com/users/edenhill/following{/other_user}","gists_url":"https://api.github.com/users/edenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/edenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenhill/subscriptions","organizations_url":"https://api.github.com/users/edenhill/orgs","repos_url":"https://api.github.com/users/edenhill/repos","events_url":"https://api.github.com/users/edenhill/events{/privacy}","received_events_url":"https://api.github.com/users/edenhill/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T15:40:09Z","updated_at":"2018-02-08T15:40:09Z","author_association":"OWNER","body":"That error usually means you are trying to link openssl statically with a mismatching msvcr version (120 vs 140).\r\nOpenSSL was compiled for v120, but VS 2015 uses v140.\r\nThe workaround is to link OpenSSL dynamically by changing win32/librdkafka.vcxproj as so:\r\n```\r\n-    <LibraryPath>$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);C:\\OpenSSL-Win64\\lib\\VC\\static</LibraryPath>\r\n+    <LibraryPath>$(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);C:\\OpenSSL-Win64\\lib\\VC</LibraryPath>^M\r\n```"}}
{"actor":{"display_login":"edenhill"}}