I have compiled the SFML 2.0 libraries in both debug/release modes as well as the static/release ones. But when i try to compile a simple program (defining only an sf::RenderWindow) I still get unresolved external symbol..
Visual C++ 2010 Express, Win7 64bit
Any help?
I have my include/lib directories added to the VC++ Directories options.
Debug Additional Dependencies (with SFML_DYNAMIC preprocessor):
sfml-graphics-d.lib
sfml-audio-d.lib
sfml-window-d.lib
sfml-system-d.lib
sfml-network-d.lib
Relase Additional Dependencies (with and without SFML_STATIC preprocessor accordingly)
Tried both of these:
sfml-graphics.lib
sfml-audio.lib
sfml-window.lib
sfml-system.lib
sfml-network.lib
sfml-graphics-s.lib
sfml-audio-s.lib
sfml-window-s.lib
sfml-system-s.lib
sfml-network-s.lib
All tried using a default empty project with console subsystem (no need for sfml-main).
My C++ code (main.cpp):
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow Game(sf::VideoMode(800,600,32),"Test window");
}
The exact error (in debug mode):
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
(in release mode, with and without statics):
error LNK2001: unresolved external symbol "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 &)" (??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)
Thanks in advance, iiNsyD.
PS: Post if you need more info to help