Error with Static linking TGUI 0.6.1
« on: 19 January 2017, 09:18:40 »
Getting 82 unresolved messages when linking with static linking TGUI 0.6.1. Using Visual Studio 2012
Code: [Select]
All Configurations
C/C++ -> Additional Include Directories -> C:\TGUI-0.6.1\include;
Linker  -> Additional Library Directories  -> C:\TGUI-0.6.1\lib\SFML; C:\TGUI-0.6.1\lib\TGUI;

Debug
Linker -> Input -> Additional Dependices ->  sfml-graphics-s-d.lib; sfml-system-s-d.lib; sfml-window-s-d.lib; sfml-audio-s-d.lib; sfml-network-s-d.lib; tgui-s-d.lib;

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

Error Messages:
Code: [Select]
Error 91 error LNK1120: 82 unresolved externals
Error 62 error LNK2001: unresolved external symbol ___GLEW_ARB_fragment_shader
Error 63 error LNK2001: unresolved external symbol ___GLEW_ARB_shader_objects

Error 64 error LNK2001: unresolved external symbol ___GLEW_ARB_shading_language_100
Error 76 error LNK2001: unresolved external symbol ___GLEW_ARB_texture_non_power_of_two
Error 65 error LNK2001: unresolved external symbol ___GLEW_ARB_vertex_shader
Error 36 error LNK2001: unresolved external symbol ___GLEW_EXT_blend_func_separate
Error 43 error LNK2001: unresolved external symbol ___glewActiveTextureARB
Error 44 error LNK2001: unresolved external symbol ___glewAttachObjectARB
Error 35 error LNK2001: unresolved external symbol ___glewBlendFuncSeparateEXT
Error 45 error LNK2001: unresolved external symbol ___glewCompileShaderARB
Error 46 error LNK2001: unresolved external symbol ___glewCreateProgramObjectARB
Error 47 error LNK2001: unresolved external symbol ___glewCreateShaderObjectARB
Error 48 error LNK2001: unresolved external symbol ___glewDeleteObjectARB
Error 49 error LNK2001: unresolved external symbol ___glewGetHandleARB
Error 50 error LNK2001: unresolved external symbol ___glewGetInfoLogARB
Error 51 error LNK2001: unresolved external symbol ___glewGetObjectParameterivARB
Error 52 error LNK2001: unresolved external symbol ___glewGetUniformLocationARB
Error 53 error LNK2001: unresolved external symbol ___glewLinkProgramARB
Error 54 error LNK2001: unresolved external symbol ___glewShaderSourceARB
Error 55 error LNK2001: unresolved external symbol ___glewUniform1fARB
Error 56 error LNK2001: unresolved external symbol ___glewUniform1iARB
Error 57 error LNK2001: unresolved external symbol ___glewUniform2fARB
Error 58 error LNK2001: unresolved external symbol ___glewUniform3fARB
Error 59 error LNK2001: unresolved external symbol ___glewUniform4fARB
Error 60 error LNK2001: unresolved external symbol ___glewUniformMatrix4fvARB
Error 61 error LNK2001: unresolved external symbol ___glewUseProgramObjectARB
Error 67 error LNK2001: unresolved external symbol __imp__glBindTexture@8
Error 2 error LNK2001: unresolved external symbol __imp__glEnable@4
Error 39 error LNK2001: unresolved external symbol __imp__glFlush@0
Error 20 error LNK2001: unresolved external symbol __imp__glGetError@0
Error 41 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
Error 42 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8
Error 22 error LNK2001: unresolved external symbol __imp__glLoadMatrixf@4
Error 24 error LNK2001: unresolved external symbol __imp__glMatrixMode@4

Error 66 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)

Error 12 error LNK2019: unresolved external symbol __imp__glBlendFunc@8 referenced in function "private: void __thiscall sf::RenderTarget::applyBlendMode(enum sf::BlendMode)"
(?applyBlendMode@RenderTarget@sf@@AAEXW4BlendMode@2@@Z)
Error 13 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)

Error 14 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)

Error 15 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)

Error 68 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)

Error 69 error LNK2019: unresolved external symbol __imp__glDeleteTextures@8 referenced in function "public: __thiscall sf::Texture::~Texture(void)" (??1Texture@sf@@QAE@XZ)

Error 16 error LNK2019: unresolved external symbol __imp__glDisable@4 referenced in function "public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)

Error 17 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)

Error 1 error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "private: void __thiscall sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AAEXXZ)

Error 18 error LNK2019: unresolved external symbol __imp__glEnableClientState@4 referenced in function "public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)
Error 38 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)

Error 70 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)

Error 19 error LNK2019: unresolved external symbol __imp__glGetError@0 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)

Error 40 error LNK2019: unresolved external symbol __imp__glGetIntegerv@8 referenced in function "int __cdecl `anonymous namespace'::getMaxTextureUnits(void)" (?getMaxTextureUnits@?A0x762fea87@@YAHXZ)
Error 3 error LNK2019: unresolved external symbol __imp__glGetString@4 referenced in function "private: void __thiscall sf::priv::GlContext::initialize(void)" (?initialize@GlContext@priv@sf@@AAEXXZ)

Error 71 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)


Error 72 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)

Error 21 error LNK2019: unresolved external symbol __imp__glLoadMatrixf@4 referenced in function "private: void __thiscall sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AAEXXZ)

Error 23 error LNK2019: unresolved external symbol __imp__glMatrixMode@4 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)

Error 25 error LNK2019: unresolved external symbol __imp__glPolygonMode@8 referenced in function "public: void __thiscall sf::RenderTarget::resetGLStates(void)" (?resetGLStates@RenderTarget@sf@@QAEXXZ)
Error 26 error LNK2019: unresolved external symbol __imp__glPopAttrib@0 referenced in function "public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)
Error 27 error LNK2019: unresolved external symbol __imp__glPopClientAttrib@0 referenced in function "public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)
Error 28 error LNK2019: unresolved external symbol __imp__glPopMatrix@0 referenced in function "public: void __thiscall sf::RenderTarget::popGLStates(void)" (?popGLStates@RenderTarget@sf@@QAEXXZ)
Error 29 error LNK2019: unresolved external symbol __imp__glPushAttrib@4 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
Error 30 error LNK2019: unresolved external symbol __imp__glPushClientAttrib@4 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
Error 31 error LNK2019: unresolved external symbol __imp__glPushMatrix@0 referenced in function "public: void __thiscall sf::RenderTarget::pushGLStates(void)" (?pushGLStates@RenderTarget@sf@@QAEXXZ)
Error 37 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)
Error 32 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)
Error 73 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)
Error 74 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)
Error 75 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)
Error 33 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)
Error 34 error LNK2019: unresolved external symbol __imp__glViewport@16 referenced in function "private: void __thiscall sf::RenderTarget::applyCurrentView(void)" (?applyCurrentView@RenderTarget@sf@@AAEXXZ)
Error 11 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)
Error 10 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)
Error 89 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)
Error 90 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)
Error 88 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)
Error 4 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)
Error 5 error LNK2019: unresolved external symbol __imp__wglDeleteContext@4 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
Error 6 error LNK2019: unresolved external symbol __imp__wglGetCurrentContext@0 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
Error 7 error LNK2019: unresolved external symbol __imp__wglGetProcAddress@4 referenced in function "public: virtual void __thiscall sf::priv::WglContext::setVerticalSyncEnabled(bool)" (?setVerticalSyncEnabled@WglContext@priv@sf@@UAEX_N@Z)
Error 8 error LNK2019: unresolved external symbol __imp__wglMakeCurrent@8 referenced in function "public: virtual __thiscall sf::priv::WglContext::~WglContext(void)" (??1WglContext@priv@sf@@UAE@XZ)
Error 9 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)
Error 78 error LNK2019: unresolved external symbol _glewGetErrorString referenced in function "void __cdecl sf::priv::ensureGlewInit(void)" (?ensureGlewInit@priv@sf@@YAXXZ)
Error 77 error LNK2019: unresolved external symbol _glewInit referenced in function "void __cdecl sf::priv::ensureGlewInit(void)" (?ensureGlewInit@priv@sf@@YAXXZ)
Error 80 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)
Error 81 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)

Error 87 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)
Error 83 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)


Error 84 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)


Error 85 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)

Error 79 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)

Error 82 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)

Error 86 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)

« Last Edit: 19 January 2017, 10:08:33 by Czar05 »

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Error with Static linking TGUI 0.6.1
« Reply #1 on: 19 January 2017, 10:42:41 »
These linking errors are not coming from TGUI, if you link SFML statically you also have to link SFML dependencies yourself.

If your project didn't give these errors before you linked TGUI then it would indicate that you are using an older SFML version while TGUI was compiled against the latest version.

Btw, you don't have to define TGUI_USE_STATIC_STD_LIBS.

Re: Error with Static linking TGUI 0.6.1
« Reply #2 on: 19 January 2017, 11:02:08 »
Thanks for the response texus,

I'm linking with the SFML that is packaged with TGUI. When I link with the SFML from the main site, it runs fine without errors its only the TGUI packed version. So essentially I cannot run TGUI.

Code: [Select]
if you link SFML statically you also have to link SFML dependencies yourself.

Confused by which dependencies you are referring to? Could you list them. The dependencies I can think of are sfml-graphics-s-d.lib, sfml-system-s-d.lib, and etc

I'm using SFML 2.1 along with Visual Studio 2012


« Last Edit: 19 January 2017, 11:12:24 by Czar05 »

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Error with Static linking TGUI 0.6.1
« Reply #3 on: 19 January 2017, 11:18:18 »
Quote
I'm linking with the SFML that is packaged with TGUI.
TGUI doesn't come packaged with any SFML version. Where did you download it exactly?

Quote
I'm using SFML 2.1
SFML 2.1 has to be linked differently from later versions when linking statically (they changed it somewhere between 2.2 and 2.4). If you use a newer SFML version then you must also link to opengl, glew, jpeg, etc.

The SFML version used to build TGUI has to match perfectly with the SFML version you are using in your project. Based on the errors I would say that SFML > 2.1 was used when compiling TGUI and you are using SFML 2.1 in your project. You might want to try to recompile TGUI.

Edit: I thought it was a typo initially, but you should really update to TGUI 0.6.10, there have been many bug fixes since 0.6.1.
« Last Edit: 19 January 2017, 11:21:07 by texus »

Re: Error with Static linking TGUI 0.6.1
« Reply #4 on: 19 January 2017, 11:35:47 »
I downloaded it from this site.

TGUI 0.6.1 came with two include files one for SFML and another with TGUI. Same applied to the libs. I placed both of them in their respective locations in visual studio.

When I was linking TGUI, I did not have any new additional dependencies. Used the same dependencies I always have but with the s suffix for static.  I never had problems with this with dynamic linking.

I'm currently not using any new SFML version. SFML 2.1 uses  VS 2012.

Re: Error with Static linking TGUI 0.6.1
« Reply #5 on: 19 January 2017, 11:45:54 »
Does TGUI-0.6.10 not come with any libs? Do I have to generate them myself? I do not seem them, in the folder. Can TGUI 0.6.10 still work with SFML 2-1? Trying to link statically with it.  I would prefer not to use new versions of TGUI as I have run into some bugs with the latest versions of SFML.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Error with Static linking TGUI 0.6.1
« Reply #6 on: 19 January 2017, 11:50:20 »
Ok, I finally understood the setup. I actually don't see any reason why it wouldn't work.
But the zip file you downloaded is almost 3 years old so I can't make any guarentees that what it contained is really correct. I used to distribute SFML libraries with TGUI back then because there were bugs in SFML 2.1 and SFML 2.2 that affected TGUI. So I actually doubt that these libraries are the real SFML 2.1, they are probably a version somewhere inbetween 2.1 and 2.2.

I would really just get the latest versions (SFML 2.4.1 and TGUI 0.6.10), what you have is 3 years old and contains many bugs. If possible I even recommend updating the compiler and use TGUI 0.7.2, but I understand if the compiler is not something you consider updating. The libraries on the other hand should be up-to-date or else I won't be able to support you much. Both SFML 2.4.1 and TGUI 0.6.10 still support VS2012.

I have binaries for TGUI 0.6 here but I have no idea for which SFML version they are compiled so you will likely have to compile TGUI yourself. That way you can also use any SFML version you want as long as it is 2.2 or higher. I removed support for SFML 2.1 some time ago.

Edit: If you really need SFML 2.1 you can always download https://github.com/texus/TGUI/archive/v0.6.1.zip and build that one instead of the latest TGUI version. But you will have to build TGUI yourself no matter what you choose, unless you update the compiler and download a binary for TGUI 0.7.
« Last Edit: 19 January 2017, 11:54:36 by texus »

Re: Error with Static linking TGUI 0.6.1
« Reply #7 on: 19 January 2017, 12:03:09 »
Alright, I'll see what I can do. Thanks for the help texus.

Re: Error with Static linking TGUI 0.6.1
« Reply #8 on: 19 January 2017, 12:34:17 »
One more question. I am using SFML 2.1 with TGUI 0.7 and I getting the following error do you know the problem
Code: [Select]
Error 52 error C1075: end of file found before the left angle-bracket '<' at 'c:\tgui-0.7\include\tgui\widgets\grid.hpp(249)' was matched

Is it a problem with the current configuration (SFML 2.1 and TGUI 0.7) or something else entirely.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: Error with Static linking TGUI 0.6.1
« Reply #9 on: 19 January 2017, 12:37:40 »
You can't use TGUI 0.7 with VS2012 and SFML 2.1, it requires at least VS2013 and SFML 2.2.