Nieudana kompilacja - sfml 2.1

0

Witam,
skonfigurowałem bibliotekę sfml zgodnie z instrukcją z tej strony: http://www.sfml-dev.org/tutorials/2.1/start-cb.php . Niestety, przy próbie kompilacji przykładowego kodu pojawia się

 ||=== Build: Debug in xdd (compiler: GNU GCC Compiler) ===|
C:\Users\user\Documents\SFML-2.1\include\SFML\Config.hpp|129|error: syntax error before "sf"|
C:\Users\user\Documents\SFML-2.1\include\SFML\Config.hpp|130|error: syntax error before '{' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\Config.hpp|156|error: syntax error before '}' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|35|error: syntax error before '{' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp||In function `asSeconds':|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|60|warning: empty declaration|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|70|error: syntax error before "const"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|80|error: syntax error before "const"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|85|warning: type defaults to `int' in declaration of `Time'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|85|error: storage class specified for parameter `Time'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Time.hpp|85|error: syntax error before "Zero"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Err.hpp|32|ostream: No such file or directory|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Mutex.hpp|83|error: syntax error before "private"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|32|locale: No such file or directory|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|33|string: No such file or directory|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|51|warning: type defaults to `int' in declaration of `std'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|51|error: storage class specified for parameter `std'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|51|error: syntax error before ':' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|56|warning: type defaults to `int' in declaration of `std'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|56|error: storage class specified for parameter `std'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|56|error: conflicting types for 'std'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|51|error: previous definition of 'std' was here|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|56|error: syntax error before ':' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|251|error: syntax error before ':' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|251|error: declaration of `operator' as array of functions|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|284|error: syntax error before "std"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|306|error: syntax error before ':' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|318|error: syntax error before ':' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\String.hpp|345|error: syntax error before "const"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Thread.hpp|33|cstdlib: No such file or directory|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Thread.hpp|41|warning: empty declaration|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Thread.hpp|42|error: syntax error before '}' token|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Thread.hpp|174|error: syntax error before "private"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Thread.hpp|189|error: syntax error before "priv"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\ThreadLocal.hpp|79|error: syntax error before "const"|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.hpp|32|algorithm: No such file or directory|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|53|error: storage class specified for parameter `offsets'|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|53|error: parameter `offsets' is initialized|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: excess elements in scalar initializer|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: (near initialization for `offsets')|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: excess elements in scalar initializer|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: (near initialization for `offsets')|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: excess elements in scalar initializer|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: (near initialization for `offsets')|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: excess elements in scalar initializer|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|55|warning: (near initialization for `offsets')|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|56|warning: excess elements in scalar initializer|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|56|warning: (near initialization for `offsets')|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|59|error: parameter `trailingBytes' is initialized|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|59|error: `trailing' undeclared (first use in this function)|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|59|error: (Each undeclared identifier is reported only once|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|59|error: for each function it appears in.)|
C:\Users\user\Documents\SFML-2.1\include\SFML\System\Utf.inl|59|confused by earlier errors, bailing out|
||=== Build failed: 37 error(s), 15 warning(s) (0 minute(s), 0 second(s)) ===|

. Szukałem rozwiązanie w google, nie udało mi się tego naprawić. Proszę o pomoc w rozwiązaniu problemu.
Pozdrawiam

0

Na prawdę nikt nie zna odpowiedzi na moje pytanie??

0

Sprawdź czy na pewno kompilujesz to g++, a nie gcc.

0

Czy chodzi o to, że w ustawieniach w polu "C++ compiler" mam "mingw32-g++.exe"?

1 użytkowników online, w tym zalogowanych: 0, gości: 1