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

Author Topic: Statically linking (yay another one) [Fixed]  (Read 4882 times)

0 Members and 2 Guests are viewing this topic.

Benjinx

  • Newbie
  • *
  • Posts: 2
    • View Profile
Statically linking (yay another one) [Fixed]
« on: October 06, 2015, 11:35:43 pm »
Problem fixed. Read first comment.

-------

hey,

Alright so i've been trying to statically link SFML up. I've followed the guide here.

http://www.sfml-dev.org/tutorials/2.0/start-vc.php

my libraries are x64 and i'm building in x64, debug.

I'm linking the include directory in c/c++ -> general -> additional include directories.

the lib directory in linker->general->additional library directories.

the libs in linker -> input -> additional dependencies. sfml-window-s-d.lib;sfml-system-s-d.lib;sfml-graphics-s-d.lib

C/C++ -> Preprocessor -> preprocessor definitions. SFML_STATIC

i've double checked and C/C++ -> Code Generation -> Runtime Library = Multi-threaded debug (/mtd)


This is the code i'm using, directly from the guide.
Quote
#include <SFML/Graphics.hpp>

int main()
{
   sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
   sf::CircleShape shape(100.f);
   shape.setFillColor(sf::Color::Green);

   while (window.isOpen())
   {
      sf::Event event;
      while (window.pollEvent(event))
      {
         if (event.type == sf::Event::Closed)
            window.close();
      }

      window.clear();
      window.draw(shape);
      window.display();
   }

   return 0;
}


and the errors i'm getting are these.

Quote
Error   65   error LNK2019: unresolved external symbol jpeg_write_scanlines referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   61   error LNK2019: unresolved external symbol jpeg_stdio_dest referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   58   error LNK2019: unresolved external symbol jpeg_std_error referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   64   error LNK2019: unresolved external symbol jpeg_start_compress referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   63   error LNK2019: unresolved external symbol jpeg_set_quality referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   62   error LNK2019: unresolved external symbol jpeg_set_defaults referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   66   error LNK2019: unresolved external symbol jpeg_finish_compress referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   60   error LNK2019: unresolved external symbol jpeg_destroy_compress referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   59   error LNK2019: unresolved external symbol jpeg_CreateCompress referenced in function "private: bool __cdecl 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@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(ImageLoader.obj)   Project1
Error   19   error LNK2019: unresolved external symbol __imp_wglShareLists referenced in function "private: void __cdecl sf::priv::WglContext::createContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?createContext@WglContext@priv@sf@@AEAAXPEAV123@IAEBUContextSettings@3@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(WglContext.obj)   Project1
Error   18   error LNK2019: unresolved external symbol __imp_wglMakeCurrent referenced in function "public: virtual __cdecl sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UEAA@XZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(WglContext.obj)   Project1
Error   17   error LNK2019: unresolved external symbol __imp_wglGetProcAddress referenced in function "public: static void (__cdecl*__cdecl sf::priv::WglContext::getFunction(char const *))(void)" (?getFunction@WglContext@priv@sf@@SAP6AXXZPEBD@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(WglContext.obj)   Project1
Error   16   error LNK2019: unresolved external symbol __imp_wglGetCurrentContext referenced in function "public: virtual __cdecl sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UEAA@XZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(WglContext.obj)   Project1
Error   15   error LNK2019: unresolved external symbol __imp_wglDeleteContext referenced in function "public: virtual __cdecl sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UEAA@XZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(WglContext.obj)   Project1
Error   14   error LNK2019: unresolved external symbol __imp_wglCreateContext referenced in function "private: void __cdecl sf::priv::WglContext::createContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?createContext@WglContext@priv@sf@@AEAAXPEAV123@IAEBUContextSettings@3@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(WglContext.obj)   Project1
Error   22   error LNK2019: unresolved external symbol __imp_timeGetDevCaps referenced in function "void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-system-s-d.lib(SleepImpl.obj)   Project1
Error   24   error LNK2019: unresolved external symbol __imp_timeEndPeriod referenced in function "void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-system-s-d.lib(SleepImpl.obj)   Project1
Error   23   error LNK2019: unresolved external symbol __imp_timeBeginPeriod referenced in function "void __cdecl sf::priv::sleepImpl(class sf::Time)" (?sleepImpl@priv@sf@@YAXVTime@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-system-s-d.lib(SleepImpl.obj)   Project1
Error   20   error LNK2019: unresolved external symbol __imp_joyGetPosEx referenced in function "public: static void __cdecl sf::priv::JoystickImpl::initialize(void)" (?initialize@JoystickImpl@priv@sf@@SAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(JoystickImpl.obj)   Project1
Error   21   error LNK2019: unresolved external symbol __imp_joyGetDevCapsW referenced in function "public: bool __cdecl sf::priv::JoystickImpl::open(unsigned int)" (?open@JoystickImpl@priv@sf@@QEAA_NI@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(JoystickImpl.obj)   Project1
Error   37   error LNK2019: unresolved external symbol __imp_glViewport referenced in function "private: void __cdecl sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   44   error LNK2019: unresolved external symbol __imp_glVertexPointer referenced in function "public: void __cdecl sf::RenderTarget::draw(class sf::Vertex const *,unsigned __int64,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QEAAXPEBVVertex@2@_KW4PrimitiveType@2@AEBVRenderStates@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   57   error LNK2019: unresolved external symbol __imp_glTexSubImage2D referenced in function "public: bool __cdecl sf::Texture::loadFromImage(class sf::Image const &,class sf::Rect<int> const &)" (?loadFromImage@Texture@sf@@QEAA_NAEBVImage@2@AEBV?$Rect@H@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   51   error LNK2019: unresolved external symbol __imp_glTexParameteri referenced in function "public: bool __cdecl sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QEAA_NII@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   50   error LNK2019: unresolved external symbol __imp_glTexImage2D referenced in function "public: bool __cdecl sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QEAA_NII@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   43   error LNK2019: unresolved external symbol __imp_glTexCoordPointer referenced in function "public: void __cdecl sf::RenderTarget::draw(class sf::Vertex const *,unsigned __int64,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QEAAXPEBVVertex@2@_KW4PrimitiveType@2@AEBVRenderStates@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   45   error LNK2019: unresolved external symbol __imp_glReadPixels referenced in function "public: class sf::Image __cdecl sf::RenderWindow::capture(void)const " (?capture@RenderWindow@sf@@QEBA?AVImage@2@XZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderWindow.obj)   Project1
Error   36   error LNK2019: unresolved external symbol __imp_glPushMatrix referenced in function "public: void __cdecl sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   42   error LNK2019: unresolved external symbol __imp_glPushClientAttrib referenced in function "public: void __cdecl sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   35   error LNK2019: unresolved external symbol __imp_glPushAttrib referenced in function "public: void __cdecl sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   34   error LNK2019: unresolved external symbol __imp_glPopMatrix referenced in function "public: void __cdecl sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   41   error LNK2019: unresolved external symbol __imp_glPopClientAttrib referenced in function "public: void __cdecl sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   33   error LNK2019: unresolved external symbol __imp_glPopAttrib referenced in function "public: void __cdecl sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   31   error LNK2019: unresolved external symbol __imp_glMatrixMode referenced in function "public: void __cdecl sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   29   error LNK2019: unresolved external symbol __imp_glLoadMatrixf referenced in function "private: void __cdecl sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   49   error LNK2019: unresolved external symbol __imp_glLoadIdentity referenced in function "public: static void __cdecl sf::Texture::bind(class sf::Texture const *,enum sf::Texture::CoordinateType)" (?bind@Texture@sf@@SAXPEBV12@W4CoordinateType@12@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   48   error LNK2019: unresolved external symbol __imp_glGetTexImage referenced in function "public: class sf::Image __cdecl sf::Texture::copyToImage(void)const " (?copyToImage@Texture@sf@@QEBA?AVImage@2@XZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   12   error LNK2019: unresolved external symbol __imp_glGetString referenced in function "private: void __cdecl sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(GlContext.obj)   Project1
Error   8   error LNK2019: unresolved external symbol __imp_glGetIntegerv referenced in function "private: void __cdecl sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(GlContext.obj)   Project1
Error   3   error LNK2019: unresolved external symbol __imp_glGetError referenced in function "private: void __cdecl sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(GlContext.obj)   Project1
Error   56   error LNK2019: unresolved external symbol __imp_glGenTextures referenced in function "public: bool __cdecl sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QEAA_NII@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   46   error LNK2019: unresolved external symbol __imp_glFlush referenced in function "public: bool __cdecl sf::Texture::loadFromImage(class sf::Image const &,class sf::Rect<int> const &)" (?loadFromImage@Texture@sf@@QEAA_NAEBVImage@2@AEBV?$Rect@H@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   40   error LNK2019: unresolved external symbol __imp_glEnableClientState referenced in function "public: void __cdecl sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   1   error LNK2019: unresolved external symbol __imp_glEnable referenced in function "private: void __cdecl sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-window-s-d.lib(GlContext.obj)   Project1
Error   39   error LNK2019: unresolved external symbol __imp_glDrawArrays referenced in function "public: void __cdecl sf::RenderTarget::draw(class sf::Vertex const *,unsigned __int64,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QEAAXPEBVVertex@2@_KW4PrimitiveType@2@AEBVRenderStates@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   28   error LNK2019: unresolved external symbol __imp_glDisable referenced in function "public: void __cdecl sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QEAAXXZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   55   error LNK2019: unresolved external symbol __imp_glDeleteTextures referenced in function "public: __cdecl sf::Texture::~Texture(void)" (??1Texture@sf@@QEAA@XZ)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   54   error LNK2019: unresolved external symbol __imp_glCopyTexSubImage2D referenced in function "public: void __cdecl sf::Texture::update(class sf::Window const &,unsigned int,unsigned int)" (?update@Texture@sf@@QEAAXAEBVWindow@2@II@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   38   error LNK2019: unresolved external symbol __imp_glColorPointer referenced in function "public: void __cdecl sf::RenderTarget::draw(class sf::Vertex const *,unsigned __int64,enum sf::PrimitiveType,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QEAAXPEBVVertex@2@_KW4PrimitiveType@2@AEBVRenderStates@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   27   error LNK2019: unresolved external symbol __imp_glClearColor referenced in function "public: void __cdecl sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QEAAXAEBVColor@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   26   error LNK2019: unresolved external symbol __imp_glClear referenced in function "public: void __cdecl sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QEAAXAEBVColor@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   25   error LNK2019: unresolved external symbol __imp_glBlendFunc referenced in function "private: void __cdecl sf::RenderTarget::applyBlendMode(struct sf::BlendMode const &)" (?applyBlendMode@RenderTarget@sf@@AEAAXAEBUBlendMode@2@@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   52   error LNK2019: unresolved external symbol __imp_glBindTexture referenced in function "public: bool __cdecl sf::Texture::create(unsigned int,unsigned int)" (?create@Texture@sf@@QEAA_NII@Z)   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   32   error LNK2001: unresolved external symbol __imp_glMatrixMode   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   30   error LNK2001: unresolved external symbol __imp_glLoadMatrixf   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   13   error LNK2001: unresolved external symbol __imp_glGetString   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(GLLoader.obj)   Project1
Error   7   error LNK2001: unresolved external symbol __imp_glGetIntegerv   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(TextureSaver.obj)   Project1
Error   9   error LNK2001: unresolved external symbol __imp_glGetIntegerv   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Texture.obj)   Project1
Error   10   error LNK2001: unresolved external symbol __imp_glGetIntegerv   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Shader.obj)   Project1
Error   11   error LNK2001: unresolved external symbol __imp_glGetIntegerv   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(GLLoader.obj)   Project1
Error   4   error LNK2001: unresolved external symbol __imp_glGetError   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   5   error LNK2001: unresolved external symbol __imp_glGetError   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(GLCheck.obj)   Project1
Error   6   error LNK2001: unresolved external symbol __imp_glGetError   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(GLLoader.obj)   Project1
Error   47   error LNK2001: unresolved external symbol __imp_glFlush   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(Shader.obj)   Project1
Error   2   error LNK2001: unresolved external symbol __imp_glEnable   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(RenderTarget.obj)   Project1
Error   53   error LNK2001: unresolved external symbol __imp_glBindTexture   C:\Users\Ben\Desktop\k\Project1\sfml-graphics-s-d.lib(TextureSaver.obj)   Project1
Error   67   error LNK1120: 53 unresolved externals   C:\Users\Ben\Desktop\k\Project1\x64\Debug\Project1.exe   Project1

I'm just frustrated at this point, i've tried a lot of things and I don't know what else to do about it. Does anyone have any advice?
« Last Edit: October 07, 2015, 12:45:26 am by Benjinx »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Statically linking (yay another one)
« Reply #1 on: October 07, 2015, 12:35:39 am »
Try to read the latest tutorial  ;)

It explains how static linking has changed since 2.0 and how you now need to link SFML's dependencies.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Benjinx

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Statically linking (yay another one)
« Reply #2 on: October 07, 2015, 12:44:55 am »
wow, thank you so much. I wish I could repay you somehow. Stress totally gone.