Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

[SFML, Code::Blocks] Problem z konfiguracją

Ostatnio zmodyfikowano 2012-06-09 18:03
Autor Wiadomość
Trotom
Temat założony przez niniejszego użytkownika
[SFML, Code::Blocks] Problem z konfiguracją
» 2012-06-09 18:03:09
Witam.

Ostatnio zainteresowałem się biblioteką graficzną SFML i postanowiłem ją wypróbować. Niestety skończyło się jak zawsze, czyli błędami:
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\Config.hpp|122|error: climits: No such file or directory|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\Config.hpp|124|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\Config.hpp|131|error: #error No 8 bits integer type for this platform|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\Config.hpp|145|error: #error No 16 bits integer type for this platform|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\Config.hpp|159|error: #error No 32 bits integer type for this platform|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Clock.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\NonCopyable.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Lock.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Win32\Mutex.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Randomizer.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Sleep.hpp|34|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Win32\Thread.hpp|35|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Unicode.hpp|32|error: iterator: No such file or directory|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Unicode.hpp|33|error: locale: No such file or directory|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Unicode.hpp|34|error: string: No such file or directory|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Unicode.hpp|38|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Vector2.hpp|29|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\SFML\System\Vector3.hpp|29|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sf'|
D:\C++\SFML.c|2|error: iostream: No such file or directory|
D:\C++\SFML.c||In function 'main':|
D:\C++\SFML.c|6|error: expected expression before ':' token|
D:\C++\SFML.c|7|error: 'Clock' undeclared (first use in this function)|
D:\C++\SFML.c|7|error: (Each undeclared identifier is reported only once|
D:\C++\SFML.c|7|error: for each function it appears in.)|
D:\C++\SFML.c|9|error: expected expression before ':' token|
D:\C++\SFML.c|10|error: duplicate label 'sf'|
D:\C++\SFML.c|6|note: previous definition of 'sf' was here|
D:\C++\SFML.c|10|error: expected expression before ':' token|
D:\C++\SFML.c|9|warning: label 'std' defined but not used|
D:\C++\SFML.c|6|warning: label 'sf' defined but not used|
||=== Build finished: 26 errors, 2 warnings ===|
Proszę o szybką odpowiedź.

----------------------------------------------------------------------------------------------------------------------------------

Spróbowałem zainstalować to na nowo i tym razem wywala tylko jeden błąd:
ld.exe||cannot find -lsfml-audio.dll|
||=== Build finished: 1 errors, 0 warnings ===|
Sprawdzałem, ten plik tam jest tylko bez przedrostka "-l". Czy muszę zmienić jego nazwę? Proszę o odpowiedź.


P-58133
« 1 »
  Strona 1 z 1