[SFML] Wyświetlanie tekstu - błąd przy kompilacji
Ostatnio zmodyfikowano 2014-06-20 12:00
Lock Temat założony przez niniejszego użytkownika |
[SFML] Wyświetlanie tekstu - błąd przy kompilacji » 2014-06-20 11:57:16 Witam Mam problem z wyświetlaniem tekstu. Korzystam z poradnika http://cpp0x.pl/kursy/Kurs-SFML-1-6-C++/Wyswietlanie-tekstu/341Skopiowałem dokładnie to co jest w przykładzie w temacie i wywala mi taki o błąd przy kompilacji: 1>------ Build started: Project: Sprawdzenie, Configuration: Debug Win32 ------ 1> main.cpp 1>main.cpp(3): error C3083: 'Unicode': the symbol to the left of a '::' must be a type 1>main.cpp(13): error C2664: 'sf::Text::Text(const sf::Text &)' : cannot convert parameter 1 from 'std::wstring' to 'const sf::Text &' 1> Reason: cannot convert from 'std::wstring' to 'const sf::Text' 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called 1>main.cpp(20): error C2039: 'LoadFromFile' : is not a member of 'sf::Font' 1> C:\Users\Matcin\Documents\Visual Studio 2010\bib\SFML-2.0\include\SFML/Graphics/Font.hpp(51) : see declaration of 'sf::Font' 1>main.cpp(22): error C2039: 'IsOpened' : is not a member of 'sf::RenderWindow' 1> C:\Users\Matcin\Documents\Visual Studio 2010\bib\SFML-2.0\include\SFML/Graphics/RenderWindow.hpp(44) : see declaration of 'sf::RenderWindow' 1>main.cpp(22): fatal error C1903: unable to recover from previous error(s); stopping compilation ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
pekfos |
» 2014-06-20 12:00:31 To kurs SFML 1.6, a masz 2.0 |
|
« 1 » |