SFML community forums

Help => Graphics => Topic started by: chrz on December 29, 2008, 03:49:41 pm

Title: MinGW / MSYS Compiling problems with wchar_t in Font.hpp
Post by: chrz on December 29, 2008, 03:49:41 pm
hi i have problems with compiling my sourcecode, which includes the graphics c++ header, the problem:

lib/SFML-1.3/include/SFML/Graphics/Font.hpp:113: error: using-declaration for non-member at class scope

lib/SFML-1.3/include/SFML/Graphics/Font.hpp:113: error: expected `;' before '<' token

In file included from lib/SFML-1.3/include/SFML/Graphics.hpp:36,

Code: [Select]
std::map<wchar_t, Character> myCharacters; ///< Rendering settings of each character

it sounds like the gcc compiler have problems with wchar_t but is there a workaround out yet?, i already researched a bit and i found out, that the wide-character parts of the GCC Standard C++ Library have not yet been fully ported to Windows ( http://www.mingw.org/wiki/FAQ )
Title: MinGW / MSYS Compiling problems with wchar_t in Font.hpp
Post by: Laurent on December 29, 2008, 05:35:43 pm
Just use the latest version (from SVN -- or wait for 1.4), wchar_t is gone from SFML ;)
Title: MinGW / MSYS Compiling problems with wchar_t in Font.hpp
Post by: chrz on December 29, 2008, 07:25:10 pm
okay thanks, the svn version works fine  :D