1
General discussions / Error: LNK2019
« on: February 29, 2008, 12:15:33 pm »Quote from: "Laurent"
To use the Window package, you must link to sfml-window in addition to sfml-system.
Thanks, that helped.
But now i get the error:
Quote
LINK : fatal error LNK1104: Filei "sfml-window.obj" can not be opened.
edit:
And when i, instead of sfml-window, write sfml-window.lib i get this :shock:
Quote
LINK : warning LNK4098: Standardlibrary "MSVCRT" is in conflict with other libraries; /NODEFAULTLIB:library use.]
sfml-window.lib(Window.obj) : error LNK2019:""public: void __thiscall sf::Clock::Reset(void)" (?Reset@Clock@sf@@QAEXXZ)" in function ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)".
sfml-window.lib(Window.obj) : error LNK2019:""void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z)" in function ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)".
sfml-window.lib(Window.obj) : error LNK2019:""public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ)" in function ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)".
sfml-window.lib(Window.obj) : error LNK2019:""public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ)" in function ""public: __thiscall sf::Window::Window(void)" (??0Window@sf@@QAE@XZ)".
sfml-window.lib(VideoModeSupport.obj) : error LNK2019: "__imp__EnumDisplaySettingsA@12" in function ""public: static class sf::VideoMode __cdecl sf::priv::VideoModeSupport::GetDesktopVideoMode(void)" (?GetDesktopVideoMode@VideoModeSupport@priv@sf@@SA?AVVideoMode@3@XZ)".
sfml-window.lib(WindowImplWin32.obj) : error LNK2019: "__imp__SwapBuffers@4" in function ""private: virtual void __thiscall sf::priv::WindowImplWin32::Display(void)" (?Display@WindowImplWin32@priv@sf@@EAEXXZ)".