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

Author Topic: Cant use SFML :(  (Read 5550 times)

0 Members and 1 Guest are viewing this topic.

Br0t

  • Newbie
  • *
  • Posts: 6
    • View Profile
Cant use SFML :(
« on: April 02, 2015, 01:55:36 am »
Hi im kind of a noob and wanted to start programming with c++ and SFML :)
I have Visual Studio 2013, SFML 2.2 x32 bit and windows 8.1.
I did everything like here: http://www.sfml-dev.org/tutorials/2.2/start-vc.php
But when i try to start my application im getting this error:

**************************************************************************************
1>------ Erstellen gestartet: Projekt: c++ Game, Konfiguration: Release Win32 ------
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (__imp_?setFillColor@Shape@sf@@QAEXABVColor@2@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class sf::Color const sf::Color::Green" (__imp_?Green@Color@sf@@2V12@B)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall sf::Window::display(void)" (__imp_?display@Window@sf@@QAEXXZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: bool __thiscall sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QBE_NXZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (__imp_??0CircleShape@sf@@QAE@MI@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QAEXABVColor@2@@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: virtual __thiscall sf::CircleShape::~CircleShape(void)" (__imp_??1CircleShape@sf@@UAE@XZ)".
1>main.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ)".
1>C:\Users\Br0t\documents\visual studio 2013\Projects\c++ Game\Release\c++ Game.exe : fatal error LNK1120: 17 nicht aufgelöste Externe
========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0 übersprungen ==========
*************************************************************************************

I hope someone can Help me :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10989
    • View Profile
    • development blog
    • Email
Re: Cant use SFML :(
« Reply #1 on: April 02, 2015, 02:49:51 am »
If you link dynamically don't define SFML_STATIC.
If you link static do define SFML_STATIC.

Also this.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Br0t

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Cant use SFML :(
« Reply #2 on: April 03, 2015, 01:52:57 am »
If you link dynamically don't define SFML_STATIC.
If you link static do define SFML_STATIC.

Also this.

Hmmm i defined SFML_STATIC and i tryed this but im still getting the same error :(
Thanks for your help :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10989
    • View Profile
    • development blog
    • Email
AW: Cant use SFML :(
« Reply #3 on: April 03, 2015, 02:11:00 am »
The reason for the link was not to "try" something, but it's about actually following what's written there and thus providing the output so we can help you further. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Br0t

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: AW: Cant use SFML :(
« Reply #4 on: April 03, 2015, 11:57:46 am »
The reason for the link was not to "try" something, but it's about actually following what's written there and thus providing the output so we can help you further. ;)

Yes i know but i still got the same output but maybe i did something wrong^^

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Cant use SFML :(
« Reply #5 on: April 03, 2015, 01:18:05 pm »
Yes, obviously. Read the instructions again, this time carefully. And then provide us with the corresponding output...
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Br0t

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Cant use SFML :(
« Reply #6 on: April 04, 2015, 01:25:10 pm »
Oops sorry i changed it to debug and ran it in release xD


Code: [Select]
1>------ Erstellen gestartet: Projekt: c++ Game, Konfiguration: Debug Win32 ------
1>  Microsoft (R) Incremental Linker Version 12.00.31101.0
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  "/OUT:C:\Users\Br0t\documents\visual studio 2013\Projects\c++ Game\Debug\c++ Game.exe" /INCREMENTAL "/LIBPATH:C:\Users\Br0t\Documents\SFML-2.2 x32\lib" "sfml-graphics-s-d.lib" "sfml-network-s-d.lib" "sfml-audio-s-d.lib" "sfml-window-s-d.lib" "sfml-system-s-d.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:C:\Users\Br0t\documents\visual studio 2013\Projects\c++ Game\Debug\c++ Game.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\Br0t\documents\visual studio 2013\Projects\c++ Game\Debug\c++ Game.lib" /MACHINE:X86 Debug\main.obj
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glBlendFunc@8" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glClear@4" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glClearColor@16" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glColorPointer@16" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glDisable@4" in Funktion ""public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glDrawArrays@12" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glEnable@4" in Funktion ""public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-window-s-d.lib(GlContext.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__glEnable@4".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glEnableClientState@4" in Funktion ""public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glGetError@0" in Funktion ""public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(GLCheck.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__glGetError@0".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glLoadMatrixf@4" in Funktion ""private: void __thiscall sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AAEXXZ)".
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__glLoadMatrixf@4".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glMatrixMode@4" in Funktion ""public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__glMatrixMode@4".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glPopAttrib@0" in Funktion ""public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glPopClientAttrib@0" in Funktion ""public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glPopMatrix@0" in Funktion ""public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glPushAttrib@4" in Funktion ""public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glPushClientAttrib@4" in Funktion ""public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glPushMatrix@0" in Funktion ""public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glTexCoordPointer@16" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glVertexPointer@16" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glViewport@16" in Funktion ""private: void __thiscall sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AAEXXZ)".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewBlendEquation".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewActiveTextureARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewActiveTextureARB".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewClientActiveTextureARB".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewBlendEquationSeparateEXT".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewBlendFuncSeparateEXT".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_ARB_multitexture".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_EXT_blend_equation_separate".
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_EXT_blend_func_separate".
1>sfml-graphics-s-d.lib(RenderWindow.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glReadPixels@28" in Funktion ""public: class sf::Image __thiscall sf::RenderWindow::capture(void)const " (?capture@RenderWindow@sf@@QBE?AVImage@2@XZ)".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glFlush@0" in Funktion ""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: Nicht aufgelöstes externes Symbol "__imp__glFlush@0".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glGetIntegerv@8" in Funktion ""int __cdecl `anonymous namespace'::checkMaxTextureUnits(void)" (?checkMaxTextureUnits@?A0xa379d511@@YAHXZ)".
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__glGetIntegerv@8".
1>sfml-graphics-s-d.lib(TextureSaver.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "__imp__glGetIntegerv@8".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewAttachObjectARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewCompileShaderARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewCreateProgramObjectARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewCreateShaderObjectARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewDeleteObjectARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewGetHandleARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewGetInfoLogARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewGetObjectParameterivARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewGetUniformLocationARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewLinkProgramARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewShaderSourceARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUniform1fARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUniform1iARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUniform2fARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUniform3fARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUniform4fARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUniformMatrix4fvARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___glewUseProgramObjectARB".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_ARB_fragment_shader".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_ARB_shader_objects".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_ARB_shading_language_100".
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_ARB_vertex_shader".
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glBindTexture@8" in Funktion ""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: Nicht aufgelöstes externes Symbol "__imp__glBindTexture@8".
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glCopyTexSubImage2D@32" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glDeleteTextures@8" in Funktion ""public: __thiscall sf::Texture::~Texture(void)" (??1Texture@sf@@QAE@XZ)".
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glGenTextures@8" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glGetTexImage@20" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glLoadIdentity@0" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glTexImage2D@36" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glTexParameteri@12" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__glTexSubImage2D@36" in Funktion ""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(Texture.cpp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "___GLEW_ARB_texture_non_power_of_two".
1>sfml-graphics-s-d.lib(GLExtensions.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_glewInit" in Funktion ""void __cdecl sf::priv::ensureExtensionsInit(void)" (?ensureExtensionsInit@priv@sf@@YAXXZ)".
1>sfml-graphics-s-d.lib(GLExtensions.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_glewGetErrorString" in Funktion ""void __cdecl sf::priv::ensureExtensionsInit(void)" (?ensureExtensionsInit@priv@sf@@YAXXZ)".
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_std_error" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_CreateCompress" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_destroy_compress" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_stdio_dest" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_set_defaults" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_set_quality" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_start_compress" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_write_scanlines" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "_jpeg_finish_compress" in Funktion ""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(GlContext.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glGetString@4" in Funktion ""private: void __thiscall sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AAEXXZ)".
1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__wglCreateContext@4" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__wglDeleteContext@4" in Funktion ""public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)".
1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__wglGetCurrentContext@0" in Funktion ""public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)".
1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__wglGetProcAddress@4" in Funktion ""public: virtual void __thiscall sf::priv::WglContext::setVerticalSyncEnabled(bool)" (?setVerticalSyncEnabled@WglContext@priv@sf@@UAEX_N@Z)".
1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__wglMakeCurrent@8" in Funktion ""public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)".
1>sfml-window-s-d.lib(WglContext.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__wglShareLists@8" in Funktion ""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(JoystickImpl.cpp.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__joyGetPosEx@8" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__joyGetDevCapsW@12" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeGetDevCaps@8" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeBeginPeriod@4" in Funktion ""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: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeEndPeriod@4" in Funktion ""void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)".
1>C:\Users\Br0t\documents\visual studio 2013\Projects\c++ Game\Debug\c++ Game.exe : fatal error LNK1120: 86 nicht aufgelöste Externe
========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0 übersprungen ==========

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Cant use SFML :(
« Reply #7 on: April 04, 2015, 03:03:37 pm »
Guessing based on the names of the missing symbols, I'd say you are neglecting to link to SFML's various dependencies.
« Last Edit: April 04, 2015, 03:06:41 pm by Jesper Juhl »

Br0t

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Cant use SFML :(
« Reply #8 on: April 04, 2015, 07:38:31 pm »
Guessing based on the names of the missing symbols, I'd say you are neglecting to link to SFML's various dependencies.

Ok i dont really understand what that means cause my english is not the best^^
If i dont link it static it works...

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Cant use SFML :(
« Reply #9 on: April 04, 2015, 07:46:18 pm »
It means that he thinks you probably didn't do "everything like here". Especially the whole part about static linking which explains that you also have to link several other libs. (like glew, opengl32, etc.)

Br0t

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Cant use SFML :(
« Reply #10 on: April 04, 2015, 07:55:11 pm »
It means that he thinks you probably didn't do "everything like here". Especially the whole part about static linking which explains that you also have to link several other libs. (like glew, opengl32, etc.)

Ok thank you for the "translation" ^^
And yeah he was right i was to stupid to read...
Thank you all for the help :)

 

anything