1
General / Installing under Visual C++ 2010
« on: July 05, 2010, 10:32:19 am »
Hello everyone,
I'm new here. Well anyway, I have just gotten through a few programming classes(visual basic, c, c++) and thought hey; what good is any of this stuff if I can't find an interesting use for it? So after working with Game Maker for a while(www.yoyogames.com), I figured it would be interesting to create games in C++ since it is so similar to GML. Anyway, all of that aside let me get to the point. As it turns out, this is all making me feel like a complete noob as I can't seem to set things up correctly. I can't seem to find a good tutorial on installing under Visual C++ 2010(well, one that actually works). I've checked out the forum on other posts and I can already see that I might be flamed because I don't know how all of the compiler options work, but people have to learn somewhere as school obviously doesn't teach you.
I followed the directions in the tutorials section, and every time I try to compile I get the following LNK2019 errors. By the way this is for the window rendering example in the tutorials section; I was able to get the simple time test up and running with no problem actually:
I had gotten some small examples to compile with Allegro before so I don't know what I'm doing wrong. They're obviously Linker errors but does anyone know what is causing this? I've already tried changing the properties of my project to include the sfml-system and sfml-graphics(and also window when that didnt work). thanks.
I'm new here. Well anyway, I have just gotten through a few programming classes(visual basic, c, c++) and thought hey; what good is any of this stuff if I can't find an interesting use for it? So after working with Game Maker for a while(www.yoyogames.com), I figured it would be interesting to create games in C++ since it is so similar to GML. Anyway, all of that aside let me get to the point. As it turns out, this is all making me feel like a complete noob as I can't seem to set things up correctly. I can't seem to find a good tutorial on installing under Visual C++ 2010(well, one that actually works). I've checked out the forum on other posts and I can already see that I might be flamed because I don't know how all of the compiler options work, but people have to learn somewhere as school obviously doesn't teach you.
I followed the directions in the tutorials section, and every time I try to compile I get the following LNK2019 errors. By the way this is for the window rendering example in the tutorials section; I was able to get the simple time test up and running with no problem actually:
Code: [Select]
1>------ Build started: Project: SFMLTest, Configuration: Debug Win32 ------
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ) referenced in function _main
1>sfmltest.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>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (__imp_?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::~Image(void)" (__imp_??1Image@sf@@QAE@XZ) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Image::SaveToFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (__imp_?SaveToFile@Image@sf@@QBE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Image __thiscall sf::RenderWindow::Capture(void)const " (__imp_?Capture@RenderWindow@sf@@QBE?AVImage@2@XZ) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Close(void)" (__imp_?Close@Window@sf@@QAEXXZ) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (__imp_?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::IsOpened(void)const " (__imp_?IsOpened@Window@sf@@QBE_NXZ) referenced in function _main
1>sfmltest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(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_??0RenderWindow@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>sfmltest.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:\Stuff\Projects\Programming\SFMLTest\Debug\SFMLTest.exe : fatal error LNK1120: 12 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I had gotten some small examples to compile with Allegro before so I don't know what I'm doing wrong. They're obviously Linker errors but does anyone know what is causing this? I've already tried changing the properties of my project to include the sfml-system and sfml-graphics(and also window when that didnt work). thanks.