SFML и TMX ошибка

Я делаю свою первую игру с SFML, и я получил несколько ошибок. Эти ошибки появляются, когда doinstalowałem несколько библиотек, чтобы позволить зарядки для воспроизведения файлов TMX из программы Tiled. Это библиотеки: zlib, STP (SFML TMX PARSER), PugiXML.

#include <SFML/Graphics.hpp>
#include <cstdlib>
#include <cstdio>
#include "STP/TMXLoader.hpp"#include "player.h"
int main()
{
player Gracz(50, 50, 50, 50, 32, 32, 5);

sf::RenderWindow window(sf::VideoMode(640, 480), "SFML works!");
sf::RectangleShape rectangle;
rectangle.setSize(sf::Vector2f(Gracz.width, Gracz.height));
rectangle.setOutlineColor(sf::Color::Red);
rectangle.setOutlineThickness(5);

tmx::TileMap map("maps/map1.tmx");
map.ShowObjects();

while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();

if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
exit(0);
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
Gracz.changePos("up");
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Down))
Gracz.changePos("down");
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
Gracz.changePos("left");
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Right))
Gracz.changePos("right");
}

window.clear();

// Drawing map
window.draw(map);

rectangle.setPosition(Gracz.x, Gracz.y);
window.draw(rectangle);
window.display();
}

return 0;
}

Я думаю, что мог бы сделать что-то плохое с включением библиотек, но я не вижу проблемы.
Я использовал Visual Studio 2013 для IDE.

Мои ошибки:

Error   6   error LNK1120: 3 unresolved externals   C:\Users\Artur1\documents\visual studio 2013\Projects\Titan Age\Debug\Titan Age.exe 1   1   Titan Age
Error   3   error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall tmx::TileMap::TileMap(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0TileMap@tmx@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main C:\Users\Artur1\documents\visual studio 2013\Projects\Titan Age\Titan Age\main.obj  Titan Age
Error   5   error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall tmx::TileMap::~TileMap(void)" (__imp_??1TileMap@tmx@@UAE@XZ) referenced in function _main   C:\Users\Artur1\documents\visual studio 2013\Projects\Titan Age\Titan Age\main.obj  Titan Age
Error   4   error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall tmx::TileMap::ShowObjects(bool)" (__imp_?ShowObjects@TileMap@tmx@@QAEX_N@Z) referenced in function _main   C:\Users\Artur1\documents\visual studio 2013\Projects\Titan Age\Titan Age\main.obj  Titan Age

Спасибо за помощь.

1

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы [email protected]