Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: cant get sf::VideoMode::getDesktopMode() to work  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Harmz

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
cant get sf::VideoMode::getDesktopMode() to work
« on: October 25, 2013, 10:45:43 pm »
what im trying to do is make my window the size of my desktop(without full screen) but each time i run my code it says it cant find the functions implamintation
Quote
Error   1   error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class sf::VideoMode __stdcall sf::VideoMode::getDesktopMode(void)" (__imp_?getDesktopMode@VideoMode@sf@@SG?AV12@XZ) referenced in function _WinMain@16   C:\Users\Harmz\documents\visual studio 2012\Projects\GraphDrawer\GraphDrawer\Progrem.obj

yet i have included the needed files,included all the libs and copied all the dlls and when i run my code without this function i.e.
Quote
sf::RenderWindow window(sf::VideoMode(800,800),"SFML Window",sf::Style::None);

the program runs.

for addtional info:
included headers:
Quote
#include <Windows.h>
#include "SFML\Window.hpp"
#include "SFML\Graphics.hpp"

included libs(running in debug):
Quote
sfml-audio-d.lib
sfml-graphics-d.lib
sfml-network-d.lib
sfml-main-d.lib
sfml-system-d.lib
sfml-window-d.lib
included dll's:
Quote
libsndfile-1.dll
openal32.dll
sfml-audio-d-2.dll
sfml-graphics-d-2.dll
sfml-network-d-2.dll
sfml-system-d-2.dll
sfml-window-d-2.dll

Harmz

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: cant get sf::VideoMode::getDesktopMode() to work
« Reply #1 on: October 25, 2013, 10:53:31 pm »
i opened a new project and it worked

 

anything