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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Harmz

Pages: [1]
1
Window / 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

Pages: [1]