{"action":"created","issue":{"url":"https://api.github.com/repos/alecthomas/entityx/issues/23","labels_url":"https://api.github.com/repos/alecthomas/entityx/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/alecthomas/entityx/issues/23/comments","events_url":"https://api.github.com/repos/alecthomas/entityx/issues/23/events","html_url":"https://github.com/alecthomas/entityx/issues/23","id":24910151,"number":23,"title":"Does not compile on Windows with Visual Studio 2013","user":{"login":"jarrettchisholm","id":1896778,"avatar_url":"https://avatars.githubusercontent.com/u/1896778?v=3","gravatar_id":"","url":"https://api.github.com/users/jarrettchisholm","html_url":"https://github.com/jarrettchisholm","followers_url":"https://api.github.com/users/jarrettchisholm/followers","following_url":"https://api.github.com/users/jarrettchisholm/following{/other_user}","gists_url":"https://api.github.com/users/jarrettchisholm/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrettchisholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrettchisholm/subscriptions","organizations_url":"https://api.github.com/users/jarrettchisholm/orgs","repos_url":"https://api.github.com/users/jarrettchisholm/repos","events_url":"https://api.github.com/users/jarrettchisholm/events{/privacy}","received_events_url":"https://api.github.com/users/jarrettchisholm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2013-12-31T03:06:34Z","updated_at":"2015-02-25T08:26:22Z","closed_at":"2014-10-31T05:24:57Z","body":"Does not compile on Windows with Visual Studio 2013.\r\n\r\n1. First issue was gcc specific compiler flags.  To remove:\r\n- go to Project -> Properties -> Configuration Properties -> C/C++ -> Command Line\r\n- Remove all the flags in the 'Additional Options' box\r\n\r\n2. Second issue: Cannot open include file: 'unistd.h': No such file or directory\r\nI think `unistd.h` is unix only.  Need to find a replacement for Windows.\r\n\r\n3. After commenting out the first `unistd.h` include I saw (in `simplesignal.h`), I get lots of errors - 648 to be exact.\r\nSome of them I think are just missing includes.  Some of them, I'm not sure if VS doesn't support some C++11 features?  For example, in `simplesignal.h`, I get an error for this bit of code:\r\n\r\n```\r\n/// CollectorInvocation specialisation for regular signals.\r\ntemplate<class Collector, class R, class... Args>\r\nstruct CollectorInvocation<Collector, R (Args...)> {\r\n  inline bool\r\n  invoke (Collector &collector, const std::function<R (Args...)> &cbf, Args... args)\r\n  {\r\n    return collector (cbf (args...));\r\n  }\r\n};\r\n```\r\n\r\nThe errors are:\r\n1. Error\t12\terror C4430: missing type specifier - int assumed. Note: C++ does not support default-int\r\n2. Error\t13\terror C2143: syntax error : missing ',' before '<'\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alecthomas/entityx/issues/comments/75922612","html_url":"https://github.com/alecthomas/entityx/issues/23#issuecomment-75922612","issue_url":"https://api.github.com/repos/alecthomas/entityx/issues/23","id":75922612,"user":{"login":"Clavotro","id":11189802,"avatar_url":"https://avatars.githubusercontent.com/u/11189802?v=3","gravatar_id":"","url":"https://api.github.com/users/Clavotro","html_url":"https://github.com/Clavotro","followers_url":"https://api.github.com/users/Clavotro/followers","following_url":"https://api.github.com/users/Clavotro/following{/other_user}","gists_url":"https://api.github.com/users/Clavotro/gists{/gist_id}","starred_url":"https://api.github.com/users/Clavotro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clavotro/subscriptions","organizations_url":"https://api.github.com/users/Clavotro/orgs","repos_url":"https://api.github.com/users/Clavotro/repos","events_url":"https://api.github.com/users/Clavotro/events{/privacy}","received_events_url":"https://api.github.com/users/Clavotro/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T08:26:22Z","updated_at":"2015-02-25T08:26:22Z","body":"Hello, \r\nI am keen to use entitiyx on windows with Visual Studio 2013 too. I am having issues getting the sample program to compile. I have LNK errors such as \r\n\r\n\"Error\t13\terror LNK2001: unresolved external symbol \"public: static unsigned int entityx::BaseSystem::family_counter_\" (?family_counter_@BaseSystem@entityx@@2IA)\"\r\n\r\nand\r\n\r\n\"Error\t3\terror LNK2019: unresolved external symbol \"public: virtual __thiscall entityx::EventManager::~EventManager(void)\" (??1EventManager@entityx@@UAE@XZ) referenced in function __unwindfunclet$??0EntityX@entityx@@QAE@XZ$0\"\r\n\r\nUsually with other  add-ons I have used (like SFML) I would add the appropriate .libs to fix this, but I cannot find any in the entitiyx folder. What should I do to fix this?\r\n\r\nThanks\r\n"}}