Build errors on VS 2008

Started by vendeme, 12 August 2013, 00:41:26

vendeme

The TGUI does not support the standard below the C++11?

Visual Studio 2008 Professional Edition.
Cmake: Realise, TGUI_USE_STATIC_STD_LIBS
Errors on build (russian): https://pastebin.com/BLn1d9Kv
ps: In vs2010, the compilation is working properly.

texus

No, I recently decided to make the switch to c++11.

You will need at least Visual Studio 2010 to use tgui.

vendeme

Quote from: texus on 12 August 2013, 00:43:31
No, I recently decided to make the switch to c++11.

You will need at least Visual Studio 2010 to use tgui.
This is sad. Especially for the library.  :'(

texus

It wasn't an easy decision.
I tried to keep using boost for as long as possible but this started to give problems.

The major reason to remove boost and start using c++11 was because if tgui wasn't compiled with the '-std=c++11' flag then strange behaviour occured when building your own project with '-std=c++11' (MinGW compiler).

If I wouldn't had to use boost or c++11 for the callback system (I really needed std::function), then I would have definately kept support for older compilers much longer.

vendeme

May still need to go back to C++ x03?
Because of the rigid attachment to the new standard, perhaps many will not use this library.

texus

I doubt that many people are not going to use my library just because they need c++11. Most VS users have the express version anyway, so they can easily upgrade. And anyone downloading MinGW will also have c++11 support.

But those who really don't want to upgrade to a newer compiler (which I can understand in some situations) can still use tgui v0.5.