{"action":"created","issue":{"url":"https://api.github.com/repos/pocoproject/poco/issues/2168","repository_url":"https://api.github.com/repos/pocoproject/poco","labels_url":"https://api.github.com/repos/pocoproject/poco/issues/2168/labels{/name}","comments_url":"https://api.github.com/repos/pocoproject/poco/issues/2168/comments","events_url":"https://api.github.com/repos/pocoproject/poco/issues/2168/events","html_url":"https://github.com/pocoproject/poco/issues/2168","id":298034201,"node_id":"MDU6SXNzdWUyOTgwMzQyMDE=","number":2168,"title":"LINKER error trying to use POCO NET","user":{"login":"rohaanhamid","id":2194272,"node_id":"MDQ6VXNlcjIxOTQyNzI=","avatar_url":"https://avatars0.githubusercontent.com/u/2194272?v=4","gravatar_id":"","url":"https://api.github.com/users/rohaanhamid","html_url":"https://github.com/rohaanhamid","followers_url":"https://api.github.com/users/rohaanhamid/followers","following_url":"https://api.github.com/users/rohaanhamid/following{/other_user}","gists_url":"https://api.github.com/users/rohaanhamid/gists{/gist_id}","starred_url":"https://api.github.com/users/rohaanhamid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohaanhamid/subscriptions","organizations_url":"https://api.github.com/users/rohaanhamid/orgs","repos_url":"https://api.github.com/users/rohaanhamid/repos","events_url":"https://api.github.com/users/rohaanhamid/events{/privacy}","received_events_url":"https://api.github.com/users/rohaanhamid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-17T20:33:27Z","updated_at":"2018-06-04T16:19:14Z","closed_at":null,"author_association":"NONE","body":"#### Expected behavior\r\nPoco Net should link successfully\r\n\r\n#### Actual behavior\r\nIf I try to link to Poco Net in my project the compiler throws the following error:\r\n\"error LNK2001: unresolved external symbol pocoNetworkInitializer\"\r\n\r\nI am using VS 2008 and compiling for Windows CE. It compiled fine with VS 2013 for Windows.\r\n\r\n*** EDIT: WORKAROUND\r\nIf anyone else is facing the same problem, setting the POCO_NO_AUTOMATIC_LIB_INIT preprocessor definition did it for me.  I think you just have to call initializeNetwork() before using any package in NET.\r\n\r\n#### Steps to reproduce the problem\r\nCompile a project linked to PocoNetmtd.lib\r\n\r\n#### POCO version\r\n1.8.1\r\n\r\n#### Compiler and version\r\nVS2008 SP1 for Windows CE\r\n\r\n#### Operating system and version\r\nWindows CE\r\n\r\n#### Other relevant information\r\n"},"comment":{"url":"https://api.github.com/repos/pocoproject/poco/issues/comments/394413976","html_url":"https://github.com/pocoproject/poco/issues/2168#issuecomment-394413976","issue_url":"https://api.github.com/repos/pocoproject/poco/issues/2168","id":394413976,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQxMzk3Ng==","user":{"login":"Ataginsky","id":3600968,"node_id":"MDQ6VXNlcjM2MDA5Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/3600968?v=4","gravatar_id":"","url":"https://api.github.com/users/Ataginsky","html_url":"https://github.com/Ataginsky","followers_url":"https://api.github.com/users/Ataginsky/followers","following_url":"https://api.github.com/users/Ataginsky/following{/other_user}","gists_url":"https://api.github.com/users/Ataginsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Ataginsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ataginsky/subscriptions","organizations_url":"https://api.github.com/users/Ataginsky/orgs","repos_url":"https://api.github.com/users/Ataginsky/repos","events_url":"https://api.github.com/users/Ataginsky/events{/privacy}","received_events_url":"https://api.github.com/users/Ataginsky/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T16:19:14Z","updated_at":"2018-06-04T16:19:14Z","author_association":"NONE","body":"This solutions doesn't worked for me in WinCE 6.0 (target archi x86), VS **2005**.\r\nThe workaround was to completely comment `#if defined(POCO_OS_FAMILY_WINDOWS) && !defined(POCO_NO_AUTOMATIC_LIB_INIT) `section (from line 49) in **Net.cpp** file.\r\n\r\nIn the same time, I have zero problem with the same project but with target architecture ARM (so, diff SDK than x86 of course). I doesn't need to comment or setting POCO_NO_AUTOMATIC_LIB_INIT, it just link successfully.\r\n\r\n**POCO version**\r\n1.6.0\r\n\r\n**Compiler and version**\r\nVS200**5** SP1 for Windows CE 6.0\r\n\r\n**Target architecture**\r\nx86"}}
{"actor":{"display_login":"Ataginsky"}}