Project migration issue on VS2015

  • 2 Replies
Project migration issue on VS2015
« on: 19 August 2016, 21:22:09 »
Ok, i'm not sure what's going on here.

I went from VS2013, TGUI 0.6.9 and SFML 2.3.2 to VS2015, TGUI 0.7.1 and SFML 2.4.0 between 2 different computers with very different configurations.

Anyhow, there is a really odd issue that prevents me from compiling my project:
Code: [Select]
sf::RenderWindow window(sf::VideoMode(960, 600), "RexKeyPad");
tgui::Gui gui(window);

if (gui.setGlobalFont("data/DroidSansMono.ttf") == false)
return 1;

Severity   Code   Description   Project   File   Line   Suppression State
Error (active)      class "tgui::Gui" has no member "setGlobalFont"   RexKeyPad   c:\DEV\RexKeyPad\RexKeyPad\Main.cpp   107   

Any TGUI code beyond the IF above fails with various errors which wouldn't normally exist.

I have triple checked all sorts of path, include, lib etc configurations but can't find the cause. Any help would be appreciated



  • *****
  • 1625
    • View Profile
    • Texus's Blog
Re: Project migration issue on VS2015
« Reply #1 on: 19 August 2016, 22:40:05 »
TGUI 0.6 and 0.7 are not compatible.
If you have code written in 0.6 then you should keep using 0.6 unless you want to rewrite the tgui related code.
If you are starting a new project then you should use 0.7.

Re: Project migration issue on VS2015
« Reply #2 on: 20 August 2016, 03:24:28 »
Aha. The migration caused some issues with the solution, so i created a new solution, with tgui 0.6.10 and pasted my code in there and it works fine now