Trying out tutorial:
http://www.sfml-dev.org/tutorials/1.6/window-window.phpError:
1>KingdomOfMythos Version 2.0.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Window::~Window(void)" (__imp_??1Window@sf@@UAE@XZ) referenced in function _main
1>KingdomOfMythos Version 2.0.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ) referenced in function _main
1>KingdomOfMythos Version 2.0.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (__imp_??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z) referenced in function _main
1>KingdomOfMythos Version 2.0.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z) referenced in function _main
1>C:\Users\Snaef98\Documents\Visual Studio 2008\Projects\KingdomOfMythos Version 2.0\Debug\KingdomOfMythos Version 2.0.exe : fatal error LNK1120: 4 unresolved externals
Code:
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <stdafx.h>
#include <Window.hpp>
////////////////////////////////////////////////////////////
/// Entry point of application
///
///
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
[/code]