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

Author Topic: MinGW / MSYS Compiling problems with wchar_t in Font.hpp  (Read 2384 times)

0 Members and 1 Guest are viewing this topic.

chrz

  • Newbie
  • *
  • Posts: 8
    • View Profile
MinGW / MSYS Compiling problems with wchar_t in Font.hpp
« 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 )

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
MinGW / MSYS Compiling problems with wchar_t in Font.hpp
« Reply #1 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 ;)
Laurent Gomila - SFML developer

chrz

  • Newbie
  • *
  • Posts: 8
    • View Profile
MinGW / MSYS Compiling problems with wchar_t in Font.hpp
« Reply #2 on: December 29, 2008, 07:25:10 pm »
okay thanks, the svn version works fine  :D