{"action":"created","issue":{"url":"https://api.github.com/repos/fallahn/tmxlite/issues/30","repository_url":"https://api.github.com/repos/fallahn/tmxlite","labels_url":"https://api.github.com/repos/fallahn/tmxlite/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/fallahn/tmxlite/issues/30/comments","events_url":"https://api.github.com/repos/fallahn/tmxlite/issues/30/events","html_url":"https://github.com/fallahn/tmxlite/issues/30","id":294164917,"number":30,"title":"LNK 2019 error unresolved external symbol","user":{"login":"andrewr1991","id":16103598,"avatar_url":"https://avatars3.githubusercontent.com/u/16103598?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewr1991","html_url":"https://github.com/andrewr1991","followers_url":"https://api.github.com/users/andrewr1991/followers","following_url":"https://api.github.com/users/andrewr1991/following{/other_user}","gists_url":"https://api.github.com/users/andrewr1991/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewr1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewr1991/subscriptions","organizations_url":"https://api.github.com/users/andrewr1991/orgs","repos_url":"https://api.github.com/users/andrewr1991/repos","events_url":"https://api.github.com/users/andrewr1991/events{/privacy}","received_events_url":"https://api.github.com/users/andrewr1991/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-04T02:55:58Z","updated_at":"2018-02-05T01:17:03Z","closed_at":null,"author_association":"NONE","body":"I am trying to use tmxlite for the first time and I keep getting this error:\r\n\r\nLNK2019\tunresolved external symbol _mz_inflateInit referenced in function \"bool __cdecl tmx::decompress(char const *,class std::vector<unsigned char,class std::allocator > &,int,int)\" (?decompress@tmx@@YA_NPBDAAV?$vector@EV?$allocator@E@std@@@std@@hh@Z)\r\n\r\nI'm using Visual Studio 2017.\r\n\r\nI am using the SFML example from the download:\r\n```\r\n#include <SFML/Graphics/RenderWindow.hpp>\r\n#include <SFML/Window/Event.hpp>\r\n\r\n#include <tmxlite/Map.hpp>\r\n\r\n#include \"SFMLOrthogonalLayer.hpp\"\r\n\r\nint main()\r\n{\r\n    sf::RenderWindow window(sf::VideoMode(800, 600), \"SFML window\");\r\n\r\n    tmx::Map map;\r\n    map.load(\"assets/demo.tmx\");\r\n\r\n    MapLayer layerZero(map, 0);\r\n    MapLayer layerOne(map, 1);\r\n    MapLayer layerTwo(map, 2);\r\n\r\n    while (window.isOpen())\r\n    {\r\n        sf::Event event;\r\n        while (window.pollEvent(event))\r\n        {\r\n            if (event.type == sf::Event::Closed)\r\n                window.close();\r\n        }\r\n\r\n        window.clear(sf::Color::Black);\r\n        window.draw(layerZero);\r\n        window.draw(layerOne);\r\n        window.draw(layerTwo);\r\n        window.display();\r\n    }\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\nCan you explain a bit more in detail how to get it up and running with VS Community 2017?"},"comment":{"url":"https://api.github.com/repos/fallahn/tmxlite/issues/comments/362957476","html_url":"https://github.com/fallahn/tmxlite/issues/30#issuecomment-362957476","issue_url":"https://api.github.com/repos/fallahn/tmxlite/issues/30","id":362957476,"user":{"login":"andrewr1991","id":16103598,"avatar_url":"https://avatars3.githubusercontent.com/u/16103598?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewr1991","html_url":"https://github.com/andrewr1991","followers_url":"https://api.github.com/users/andrewr1991/followers","following_url":"https://api.github.com/users/andrewr1991/following{/other_user}","gists_url":"https://api.github.com/users/andrewr1991/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewr1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewr1991/subscriptions","organizations_url":"https://api.github.com/users/andrewr1991/orgs","repos_url":"https://api.github.com/users/andrewr1991/repos","events_url":"https://api.github.com/users/andrewr1991/events{/privacy}","received_events_url":"https://api.github.com/users/andrewr1991/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T01:17:03Z","updated_at":"2018-02-05T01:17:03Z","author_association":"NONE","body":"I opened the .sln file with visual studio and built the tmxlite project which is part of the tmxlite solution. It only created one .lib file though: 'libtmxlite-s.lib'. Do I need the other file, 'libtmxlite-s-d.lib', to use tmxlite for being able to parse my Tiled map?"}}
{"actor":{"display_login":"andrewr1991"}}