SFML einrichten VS2013 Pro



  • Hallo Community,

    Ich versuche schon seit Stunden SFML in Visual Studio 2013 einzurichten.

    Meine Schritte bisher:

    http://www.sfml-dev.org/download/sfml/2.3.2/
    Visual C++ 12(2013) - 32-bit
    herunterladen und entpacken.

    In VS2013 neues Leeres C++ Projekt erstellen.
    Quelldatei main.cpp erstellen main funktion definieren und kompilieren.

    Project -> Properties
    Configuration auf "All Configurations" stellen

    VC++ Directories -> Include Directories -> Edit
    auf SFML-2.3.2\include verweisen

    VC++ Directories -> Libary Directories -> Edit
    auf SFML-2.3.2\lib verweisen

    C/C++ -> General -> Additional Include Directories -> Edit
    auf SFML-2.3.2\include verweisen

    C/C++ -> Preprocessor -> Preprocessor Definitions
    SFML_STATIC; davorschreiben

    Linker -> Input -> Additional Dependencies -> Edit
    Folgendes Reinschreiben:
    sfml-window-s-d.lib
    sfml-graphics-s-d.lib
    sfml-system-s-d.lib
    sfml-audio-s-d.lib
    sfml-network-s-d.lib

    Übernehmen drücken

    Configuration auf "Release" stellen

    Linker -> Input -> Additional Dependencies -> Edit
    Folgendes Reinschreiben:
    sfml-window-s.lib
    sfml-graphics-s.lib
    sfml-system-s.lib
    sfml-audio-s.lib
    sfml-network-s.lib

    Ok Drücken

    in main.cpp einen kleinen Test schreiben
    (eigendlich nur ein sfml befehl)

    #include <iostream>
    #include <SFML\Graphics.hpp>
    
    int main()
    {
    	sf::RenderWindow mMainWindow(sf::VideoMode(800,600,32),"SFML Test",sf::Style::Titlebar);
    
    	return 0;
    }
    

    Wenn ich jetzt F5 drücke erhalte ich 117 fehlermeldungen und ich weiß nicht was ich vergessen habe zu konfigurieren um diese fehler zu beheben.
    Hier der Output vom Build:

    1>------ Build started: Project: SFMLTuTx32, Configuration: Debug Win32 ------
    1>  Main.cpp
    1>sfml-window-s-d.lib(VideoModeImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__EnumDisplaySettingsW@12 referenced in function "public: static class std::vector<class sf::VideoMode,class std::allocator<class sf::VideoMode> > __cdecl sf::priv::VideoModeImpl::getFullscreenModes(void)" (?getFullscreenModes@VideoModeImpl@priv@sf@@SA?AV?$vector@VVideoMode@sf@@V?$allocator@VVideoMode@sf@@@std@@@std@@XZ)
    1>sfml-graphics-s-d.lib(RenderWindow.cpp.obj) : error LNK2019: unresolved external symbol __imp__glReadPixels@28 referenced in function "public: class sf::Image __thiscall sf::RenderWindow::capture(void)const " (?capture@RenderWindow@sf@@QBE?AVImage@2@XZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glBlendFunc@8 referenced in function "private: void __thiscall sf::RenderTarget::applyBlendMode(struct sf::BlendMode const &)" (?applyBlendMode@RenderTarget@sf@@AAEXABUBlendMode@2@@Z)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glDisable@4 referenced in function "public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-window-s-d.lib(GlContext.cpp.obj) : error LNK2001: unresolved external symbol __imp__glEnable@4
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glGetError@0 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(GLCheck.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetError@0
    1>sfml-graphics-s-d.lib(GLLoader.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetError@0
    1>sfml-window-s-d.lib(GlContext.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetError@0
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glLoadMatrixf@4 referenced in function "private: void __thiscall sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AAEXXZ)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: unresolved external symbol __imp__glLoadMatrixf@4
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: unresolved external symbol __imp__glMatrixMode@4
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glPopAttrib@0 referenced in function "public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glPopMatrix@0 referenced in function "public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glPushAttrib@4 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glPushMatrix@0 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function "private: void __thiscall sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glColorPointer@16 referenced in function "public: void __thiscall sf::RenderTarget::draw(class sf::Vertex const *,unsigned int,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXPBVVertex@2@IW4PrimitiveType@2@ABVRenderStates@2@@Z)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glDrawArrays@12 referenced in function "public: void __thiscall sf::RenderTarget::draw(class sf::Vertex const *,unsigned int,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXPBVVertex@2@IW4PrimitiveType@2@ABVRenderStates@2@@Z)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glEnableClientState@4 referenced in function "public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glPopClientAttrib@0 referenced in function "public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glPushClientAttrib@4 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glTexCoordPointer@16 referenced in function "public: void __thiscall sf::RenderTarget::draw(class sf::Vertex const *,unsigned int,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXPBVVertex@2@IW4PrimitiveType@2@ABVRenderStates@2@@Z)
    1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: unresolved external symbol __imp__glVertexPointer@16 referenced in function "public: void __thiscall sf::RenderTarget::draw(class sf::Vertex const *,unsigned int,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXPBVVertex@2@IW4PrimitiveType@2@ABVRenderStates@2@@Z)
    1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2019: unresolved external symbol __imp__glFlush@0 referenced in function "private: bool __thiscall sf::Shader::compile(char const *,char const *)" (?compile@Shader@sf@@AAE_NPBD0@Z)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: unresolved external symbol __imp__glFlush@0
    1>sfml-window-s-d.lib(GlContext.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
    1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
    1>sfml-graphics-s-d.lib(GLLoader.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
    1>sfml-graphics-s-d.lib(TextureSaver.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glGetTexImage@20 referenced in function "public: class sf::Image __thiscall sf::Texture::copyToImage(void)const " (?copyToImage@Texture@sf@@QBE?AVImage@2@XZ)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glLoadIdentity@0 referenced in function "public: static void __cdecl sf::Texture::bind(class sf::Texture const *,enum sf::Texture::CoordinateType)" (?bind@Texture@sf@@SAXPBV12@W4CoordinateType@12@@Z)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glTexImage2D@36 referenced in function "public: bool __thiscall sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QAE_NII@Z)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glTexParameteri@12 referenced in function "public: bool __thiscall sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QAE_NII@Z)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: bool __thiscall sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QAE_NII@Z)
    1>sfml-graphics-s-d.lib(TextureSaver.cpp.obj) : error LNK2001: unresolved external symbol __imp__glBindTexture@8
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glCopyTexSubImage2D@32 referenced in function "public: void __thiscall sf::Texture::update(class sf::Window const &,unsigned int,unsigned int)" (?update@Texture@sf@@QAEXABVWindow@2@II@Z)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glDeleteTextures@8 referenced in function "public: __thiscall sf::Texture::~Texture(void)" (??1Texture@sf@@QAE@XZ)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glGenTextures@8 referenced in function "public: bool __thiscall sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QAE_NII@Z)
    1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: unresolved external symbol __imp__glTexSubImage2D@36 referenced in function "public: bool __thiscall sf::Texture::loadFromImage(class sf::Image const &,class sf::Rect<int> const &)" (?loadFromImage@Texture@sf@@QAE_NABVImage@2@ABV?$Rect@H@2@@Z)
    1>sfml-graphics-s-d.lib(GLLoader.cpp.obj) : error LNK2019: unresolved external symbol __imp__glGetString@4 referenced in function _sfogl_LoadFunctions
    1>sfml-window-s-d.lib(GlContext.cpp.obj) : error LNK2001: unresolved external symbol __imp__glGetString@4
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_std_error referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_CreateCompress referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_destroy_compress referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_stdio_dest referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_set_defaults referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_set_quality referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_start_compress referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_write_scanlines referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: unresolved external symbol _jpeg_finish_compress referenced in function "private: bool __thiscall sf::priv::ImageLoader::writeJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?writeJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@EV?$allocator@E@std@@@5@II@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "public: static int __cdecl sf::priv::WglContext::selectBestPixelFormat(struct HDC__ *,unsigned int,struct sf::ContextSettings const &)" (?selectBestPixelFormat@WglContext@priv@sf@@SAHPAUHDC__@@IABUContextSettings@3@@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function "private: void __thiscall sf::priv::WglContext::createContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?createContext@WglContext@priv@sf@@AAEXPAV123@IABUContextSettings@3@@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: void __thiscall sf::priv::WglContext::createContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?createContext@WglContext@priv@sf@@AAEXPAV123@IABUContextSettings@3@@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__wglCreateContext@4 referenced in function "private: void __thiscall sf::priv::WglContext::createContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?createContext@WglContext@priv@sf@@AAEXPAV123@IABUContextSettings@3@@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__wglDeleteContext@4 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__wglGetCurrentContext@0 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__wglGetProcAddress@4 referenced in function "public: static void (__cdecl*__cdecl sf::priv::WglContext::getFunction(char const *))(void)" (?getFunction@WglContext@priv@sf@@SAP6AXXZPBD@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__wglMakeCurrent@8 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__wglShareLists@8 referenced in function "private: void __thiscall sf::priv::WglContext::createContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?createContext@WglContext@priv@sf@@AAEXPAV123@IABUContextSettings@3@@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "public: virtual void __thiscall sf::priv::WglContext::display(void)" (?display@WglContext@priv@sf@@UAEXXZ)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "public: __thiscall sf::priv::WglContext::WglContext(class sf::priv::WglContext *)" (??0WglContext@priv@sf@@QAE@PAV012@@Z)
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2001: unresolved external symbol __imp__DestroyWindow@4
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "public: __thiscall sf::priv::WglContext::WglContext(class sf::priv::WglContext *)" (??0WglContext@priv@sf@@QAE@PAV012@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2001: unresolved external symbol __imp__ShowWindow@8
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "public: __thiscall sf::priv::WglContext::WglContext(class sf::priv::WglContext *)" (??0WglContext@priv@sf@@QAE@PAV012@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2001: unresolved external symbol __imp__GetDC@4
    1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2001: unresolved external symbol __imp__ReleaseDC@8
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABVString@2@IABUContextSettings@2@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__TrackMouseEvent@4 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::setTracking(bool)" (?setTracking@WindowImplWin32@priv@sf@@AAEX_N@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function "protected: virtual void __thiscall sf::priv::WindowImplWin32::processEvents(void)" (?processEvents@WindowImplWin32@priv@sf@@MAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function "protected: virtual void __thiscall sf::priv::WindowImplWin32::processEvents(void)" (?processEvents@WindowImplWin32@priv@sf@@MAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__PeekMessageW@20 referenced in function "protected: virtual void __thiscall sf::priv::WindowImplWin32::processEvents(void)" (?processEvents@WindowImplWin32@priv@sf@@MAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SendMessageW@16 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setIcon(unsigned int,unsigned int,unsigned char const *)" (?setIcon@WindowImplWin32@priv@sf@@UAEXIIPBE@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__DefWindowProcW@16 referenced in function "private: static long __stdcall sf::priv::WindowImplWin32::globalOnEvent(struct HWND__ *,unsigned int,unsigned int,long)" (?globalOnEvent@WindowImplWin32@priv@sf@@CGJPAUHWND__@@IIJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__CallWindowProcW@20 referenced in function "private: static long __stdcall sf::priv::WindowImplWin32::globalOnEvent(struct HWND__ *,unsigned int,unsigned int,long)" (?globalOnEvent@WindowImplWin32@priv@sf@@CGJPAUHWND__@@IIJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__RegisterClassW@4 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::registerWindowClass(void)" (?registerWindowClass@WindowImplWin32@priv@sf@@AAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__UnregisterClassW@8 referenced in function "public: virtual __thiscall sf::priv::WindowImplWin32::~WindowImplWin32(void)" (??1WindowImplWin32@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABVString@2@IABUContextSettings@2@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__FlashWindowEx@4 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::requestFocus(void)" (?requestFocus@WindowImplWin32@priv@sf@@UAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setPosition(class sf::Vector2<int> const &)" (?setPosition@WindowImplWin32@priv@sf@@UAEXABV?$Vector2@H@3@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::processEvent(unsigned int,unsigned int,long)" (?processEvent@WindowImplWin32@priv@sf@@AAEXIIJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__MapVirtualKeyW@8 referenced in function "private: static enum sf::Keyboard::Key __cdecl sf::priv::WindowImplWin32::virtualKeyCodeToSF(unsigned int,long)" (?virtualKeyCodeToSF@WindowImplWin32@priv@sf@@CA?AW4Key@Keyboard@3@IJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetCapture@0 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::processEvent(unsigned int,unsigned int,long)" (?processEvent@WindowImplWin32@priv@sf@@AAEXIIJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::processEvent(unsigned int,unsigned int,long)" (?processEvent@WindowImplWin32@priv@sf@@AAEXIIJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::cleanup(void)" (?cleanup@WindowImplWin32@priv@sf@@AAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetForegroundWindow@0 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::requestFocus(void)" (?requestFocus@WindowImplWin32@priv@sf@@UAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetForegroundWindow@4 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::requestFocus(void)" (?requestFocus@WindowImplWin32@priv@sf@@UAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetWindowTextW@8 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setTitle(class sf::String const &)" (?setTitle@WindowImplWin32@priv@sf@@UAEXABVString@3@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "public: virtual class sf::Vector2<unsigned int> __thiscall sf::priv::WindowImplWin32::getSize(void)const " (?getSize@WindowImplWin32@priv@sf@@UBE?AV?$Vector2@I@3@XZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function "public: virtual class sf::Vector2<int> __thiscall sf::priv::WindowImplWin32::getPosition(void)const " (?getPosition@WindowImplWin32@priv@sf@@UBE?AV?$Vector2@H@3@XZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABVString@2@IABUContextSettings@2@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setMouseCursorVisible(bool)" (?setMouseCursorVisible@WindowImplWin32@priv@sf@@UAEX_N@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__ScreenToClient@8 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::processEvent(unsigned int,unsigned int,long)" (?processEvent@WindowImplWin32@priv@sf@@AAEXIIJ@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetWindowLongW@8 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setSize(class sf::Vector2<unsigned int> const &)" (?setSize@WindowImplWin32@priv@sf@@UAEXABV?$Vector2@I@3@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__SetWindowLongW@12 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(struct HWND__ *)" (??0WindowImplWin32@priv@sf@@QAE@PAUHWND__@@@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__GetWindowThreadProcessId@8 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::requestFocus(void)" (?requestFocus@WindowImplWin32@priv@sf@@UAEXXZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setMouseCursorVisible(bool)" (?setMouseCursorVisible@WindowImplWin32@priv@sf@@UAEX_N@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__CreateIcon@28 referenced in function "public: virtual void __thiscall sf::priv::WindowImplWin32::setIcon(unsigned int,unsigned int,unsigned char const *)" (?setIcon@WindowImplWin32@priv@sf@@UAEXIIPBE@Z)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__DestroyIcon@4 referenced in function "public: virtual __thiscall sf::priv::WindowImplWin32::~WindowImplWin32(void)" (??1WindowImplWin32@priv@sf@@UAE@XZ)
    1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : error LNK2019: unresolved external symbol __imp__ChangeDisplaySettingsW@8 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::switchToFullscreen(class sf::VideoMode const &)" (?switchToFullscreen@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@@Z)
    1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "class sf::String __cdecl `anonymous namespace'::getDeviceName(unsigned int,struct tagJOYCAPSW)" (?getDeviceName@?A0x2523b675@@YA?AVString@sf@@IUtagJOYCAPSW@@@Z)
    1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "class sf::String __cdecl `anonymous namespace'::getDeviceName(unsigned int,struct tagJOYCAPSW)" (?getDeviceName@?A0x2523b675@@YA?AVString@sf@@IUtagJOYCAPSW@@@Z)
    1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "class sf::String __cdecl `anonymous namespace'::getDeviceName(unsigned int,struct tagJOYCAPSW)" (?getDeviceName@?A0x2523b675@@YA?AVString@sf@@IUtagJOYCAPSW@@@Z)
    1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__joyGetPosEx@8 referenced in function "public: static void __cdecl sf::priv::JoystickImpl::initialize(void)" (?initialize@JoystickImpl@priv@sf@@SAXXZ)
    1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__joyGetDevCapsW@12 referenced in function "public: bool __thiscall sf::priv::JoystickImpl::open(unsigned int)" (?open@JoystickImpl@priv@sf@@QAE_NI@Z)
    1>sfml-system-s-d.lib(SleepImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__timeGetDevCaps@8 referenced in function "void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)
    1>sfml-system-s-d.lib(SleepImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function "void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)
    1>sfml-system-s-d.lib(SleepImpl.cpp.obj) : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function "void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)
    1>H:\programming\C++\c++ Projekte\Spiele\SFMLTest2\Debug\SFMLTuTx32.exe : fatal error LNK1120: 99 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    

    Kann mir hier jemand helfen SFML zum laufen zu bekommen?



  • Hallo, dir fehlen einfach weitere Libraries, z.B. "opengl32.lib", "kernel32.lib", "user32.lib"...
    Schau mal in C++,SFML LNK2001 Problem (besonders die Antwort von Finnegan).

    Edit: Ich persönlich würde dir eher zu dynamischen Linken raten (auch wenn du dann die SFML-DLLs mitliefern mußt).



  • Hallo,

    danke für deine Antwort.
    Es funktioniert jetzt!


Anmelden zum Antworten