Hi there, new to this forum and with a little experience with SFML programming.
I get these 3 errors when I try to compile a VS2015 c++ project.
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function "protected: virtual int __thiscall CBatteryAlarmDlg::OnInitDialog(void)" (?OnInitDialog@CBatteryAlarmDlg@@MAEHXZ) BatteryAlarm E:\docs\programirane\BatteryAlarm\BatteryAlarm\BatteryAlarmDlg.obj 1
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ) referenced in function "protected: virtual int __thiscall CBatteryAlarmDlg::OnInitDialog(void)" (?OnInitDialog@CBatteryAlarmDlg@@MAEHXZ) BatteryAlarm E:\docs\programirane\BatteryAlarm\BatteryAlarm\BatteryAlarmDlg.obj 1
Error LNK1120 2 unresolved externals BatteryAlarm E:\docs\programirane\BatteryAlarm\BatteryAlarm\Debug\BatteryAlarm.exe 1
These errors appear only when I add this peace of code:
sf::RenderWindow testWindow(sf::VideoMode(800, 600), "test window");
Could you help me resolve what I've done wrong? Thanks!