Hey guys,
i keep getting a LNK 2019 error in
visual c++ 2008 express:
1>test.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>test.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>test.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>test.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\bakhtawar\Documents\Visual Studio 2008\Projects\SFMLtictactoe\Debug\SFMLtictactoe.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Users\*********\Documents\Visual Studio 2008\Projects\SFMLtictactoe\SFMLtictactoe\Debug\BuildLog.htm"
1>SFMLtictactoe - 5 error(s), 0 warning(s)
based on the code i copied from the tutorial:
#include <SFML/Window.hpp>
int main(){
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
the previous tutorial involving threading and even the very first script with timing worked fine for me so i believe i have appropriately linked to the appropriate SFML:
include files:
and library files:
as a matter of interest, I am linking to the microsoft SDK based on advice given on this thread from about a year or two ago:
http://www.sfml-dev.org/forum/viewtopic.php?t=244I also researched heavily and came accross this link, but found that it did not help me:
http://www.sfml-dev.org/forum/viewtopic.php?t=1553&highlight=lnk2019I also have the following aspects established under my project properties:
finally, i am running windows 7, and the ATI Radeon HD 5750 graphics card.
any help would be greatly appreciated.