Gabes |
» 2012-09-23 10:00:56 Przejrzyj posty na forum, było o tym nie raz, warsztatowy kurs dla wersji 4.9.x , o zmianie nazw plików nagłówkowych od wersji 5.0.x., kolejnych zmianach, różnicach. http://cpp0x.pl/szukaj/?fs=allegro5. tylko nie pisz 'sporo tego' -ano sporo, jak użytkownicy zamiast szukać dublują tematy idąc na łatwiznę. Może to ci pomoże http://allegro5kurs.blogspot.com/ |
|
SeaMonster131 |
» 2012-09-23 10:33:18 ale nie ma tam wgl. takiego pliku jak a5_font.h lub a5_ttf.h |
No to może jest pod nazwą np allegro5_font.h, lub allegro5/allegro5_font.h, allegro5/a5_font.h, itd.. Musisz zobaczyć jak Twoje pliki się nazywają. Wypakuj sobie folder allegro5 np na pulpit, posprawdzaj nazwy plików, skonfiguruj projekt i wtedy zacznij uczyć się z kursu (ale już będziesz miał poprawne ścieżki itd). |
|
Lotherad Temat założony przez niniejszego użytkownika |
» 2012-09-23 11:25:25 Przeniosłem folder allegro5 do folderu include, i okazuje się, że te pliki są chyba uszkodzone, niepełne lub wgl. ich nie ma. In file included from D:/Dev-Cpp/include/allegro5/base.h:50, from D:/Dev-Cpp/include/allegro5/allegro.h:26, from D:/Dev-Cpp/include/allegro5/allegro5.h:1,
from main.cpp:1: D:/Dev-Cpp/include/allegro5/internal/alconfig.h:28:39: allegro5/platform/alplatf.h: No such file or directory D:/Dev-Cpp/include/allegro5/internal/alconfig.h:57:5: #error platform not supported In file included from D:/Dev-Cpp/include/allegro5/internal/alconfig.h:61, from D:/Dev-Cpp/include/allegro5/base.h:50,
from D:/Dev-Cpp/include/allegro5/allegro.h:26, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/platform/astdint.h:70:5: #error I dunno how to get the definitions of fixed-width integer types on your platform. Please report this to your friendly Allegro developer. In file included from D:/Dev-Cpp/include/allegro5/base.h:50, from D:/Dev-Cpp/include/allegro5/allegro.h:26, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/internal/alconfig.h:318:5: #error endianess not defined In file included from D:/Dev-Cpp/include/allegro5/allegro.h:26, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/base.h:77: error: `uint32_t' does not name a type
In file included from D:/Dev-Cpp/include/allegro5/file.h:6, from D:/Dev-Cpp/include/allegro5/config.h:4, from D:/Dev-Cpp/include/allegro5/system.h:4, from D:/Dev-Cpp/include/allegro5/allegro.h:28, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1:
D:/Dev-Cpp/include/allegro5/utf8.h:57: error: `int32_t' does not name a type D:/Dev-Cpp/include/allegro5/utf8.h:58: error: `int32_t' does not name a type D:/Dev-Cpp/include/allegro5/utf8.h:59: error: `int32_t' does not name a type D:/Dev-Cpp/include/allegro5/utf8.h:66: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:66: error: ISO C++ forbids declaration of `c' with no type D:/Dev-Cpp/include/allegro5/utf8.h:71: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:71: error: ISO C++ forbids declaration of `c' with no type D:/Dev-Cpp/include/allegro5/utf8.h:93: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:93: error: ISO C++ forbids declaration of `c' with no type D:/Dev-Cpp/include/allegro5/utf8.h:98: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:98: error: ISO C++ forbids declaration of `c' with no type D:/Dev-Cpp/include/allegro5/utf8.h:100: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:100: error: ISO C++ forbids declaration of `c' with no type
D:/Dev-Cpp/include/allegro5/utf8.h:134: error: `int32_t' was not declared in this scope D:/Dev-Cpp/include/allegro5/utf8.h:135: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:135: error: ISO C++ forbids declaration of `c' with no type D:/Dev-Cpp/include/allegro5/utf8.h:138: error: `uint16_t' was not declared in this scope D:/Dev-Cpp/include/allegro5/utf8.h:140: error: `uint16_t' has not been declared D:/Dev-Cpp/include/allegro5/utf8.h:140: error: ISO C++ forbids declaration of `s' with no type D:/Dev-Cpp/include/allegro5/utf8.h:142: error: `uint16_t' was not declared in this scope D:/Dev-Cpp/include/allegro5/utf8.h:142: error: `int32_t' was not declared in this scope D:/Dev-Cpp/include/allegro5/utf8.h:142: error: initializer expression list treated as compound expression In file included from D:/Dev-Cpp/include/allegro5/config.h:4, from D:/Dev-Cpp/include/allegro5/system.h:4,
from D:/Dev-Cpp/include/allegro5/allegro.h:28, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/file.h:27: error: ISO C++ forbids declaration of `int64_t' with no type D:/Dev-Cpp/include/allegro5/file.h:27: error: expected `;' before '(' token D:/Dev-Cpp/include/allegro5/file.h:28: error: `int64_t' has not been declared D:/Dev-Cpp/include/allegro5/file.h:28: error: ISO C++ forbids declaration of `offset' with no type D:/Dev-Cpp/include/allegro5/file.h:55: error: `int64_t' does not name a type D:/Dev-Cpp/include/allegro5/file.h:56: error: `int64_t' has not been declared D:/Dev-Cpp/include/allegro5/file.h:56: error: ISO C++ forbids declaration of `offset' with no type D:/Dev-Cpp/include/allegro5/file.h:61: error: `int64_t' does not name a type D:/Dev-Cpp/include/allegro5/file.h:66: error: `int16_t' does not name a type D:/Dev-Cpp/include/allegro5/file.h:67: error: `int16_t' does not name a type D:/Dev-Cpp/include/allegro5/file.h:68: error: `int16_t' has not been declared D:/Dev-Cpp/include/allegro5/file.h:68: error: ISO C++ forbids declaration of `w' with no type D:/Dev-Cpp/include/allegro5/file.h:69: error: `int16_t' has not been declared D:/Dev-Cpp/include/allegro5/file.h:69: error: ISO C++ forbids declaration of `w' with no type D:/Dev-Cpp/include/allegro5/file.h:70: error: `int32_t' does not name a type D:/Dev-Cpp/include/allegro5/file.h:71: error: `int32_t' does not name a type D:/Dev-Cpp/include/allegro5/file.h:72: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/file.h:72: error: ISO C++ forbids declaration of `l' with no type D:/Dev-Cpp/include/allegro5/file.h:73: error: `int32_t' has not been declared D:/Dev-Cpp/include/allegro5/file.h:73: error: ISO C++ forbids declaration of `l' with no type
In file included from D:/Dev-Cpp/include/allegro5/allegro.h:35, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/altime.h:14: error: `uint64_t' does not name a type D:/Dev-Cpp/include/allegro5/altime.h:15: error: `uint64_t' does not name a type
In file included from D:/Dev-Cpp/include/allegro5/allegro.h:37, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/events.h:151: error: `int64_t' does not name a type
D:/Dev-Cpp/include/allegro5/events.h:165: error: `intptr_t' does not name a type D:/Dev-Cpp/include/allegro5/events.h:166: error: `intptr_t' does not name a type D:/Dev-Cpp/include/allegro5/events.h:167: error: `intptr_t' does not name a type D:/Dev-Cpp/include/allegro5/events.h:168: error: `intptr_t' does not name a type
D:/Dev-Cpp/include/allegro5/events.h:206: error: `intptr_t' has not been declared D:/Dev-Cpp/include/allegro5/events.h:206: error: ISO C++ forbids declaration of `data' with no type
D:/Dev-Cpp/include/allegro5/events.h:207: error: `intptr_t' does not name a type
In file included from D:/Dev-Cpp/include/allegro5/allegro.h:40, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/timer.h:55: error: `int64_t' does not name a type D:/Dev-Cpp/include/allegro5/timer.h:56: error: `int64_t' has not been declared D:/Dev-Cpp/include/allegro5/timer.h:56: error: ISO C++ forbids declaration of `count' with no type D:/Dev-Cpp/include/allegro5/timer.h:57: error: `int64_t' has not been declared D:/Dev-Cpp/include/allegro5/timer.h:57: error: ISO C++ forbids declaration of `diff' with no type
In file included from D:/Dev-Cpp/include/allegro5/allegro.h:54, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/fshook.h:26: error: conflicting declaration 'typedef unsigned int off_t' D:/Dev-Cpp/include/sys/types.h:41: error: 'off_t' has a previous declaration as `typedef _off_t off_t' D:/Dev-Cpp/include/allegro5/fshook.h:26: error: declaration of `typedef unsigned int off_t'
D:/Dev-Cpp/include/sys/types.h:41: error: conflicts with previous declaration `typedef _off_t off_t' D:/Dev-Cpp/include/allegro5/fshook.h:26: error: declaration of `typedef unsigned int off_t' D:/Dev-Cpp/include/sys/types.h:41: error: conflicts with previous declaration `typedef _off_t off_t'
D:/Dev-Cpp/include/allegro5/fshook.h:70: error: ISO C++ forbids declaration of `uint32_t' with no type D:/Dev-Cpp/include/allegro5/fshook.h:70: error: expected `;' before '(' token D:/Dev-Cpp/include/allegro5/fshook.h:96: error: `uint32_t' does not name a type
In file included from D:/Dev-Cpp/include/allegro5/fmaths.h:23,
from D:/Dev-Cpp/include/allegro5/allegro.h:57, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/fixed.h:30: error: `int32_t' does not name a type D:/Dev-Cpp/include/allegro5/fixed.h:32: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fixed.h:33: error: `al_fixed' does not name a type In file included from D:/Dev-Cpp/include/allegro5/allegro.h:57, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/fmaths.h:29: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fmaths.h:30: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fmaths.h:31: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fmaths.h:32: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fmaths.h:34: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fmaths.h:35: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/fmaths.h:36: error: `al_fixed' does not name a type
In file included from D:/Dev-Cpp/include/allegro5/fmaths.h:42,
from D:/Dev-Cpp/include/allegro5/allegro.h:57, from D:/Dev-Cpp/include/allegro5/allegro5.h:1, from main.cpp:1: D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:28: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:28: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: `al_fixtof' declared as an `inline' variable
D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: `al_fixed' was not declared in this scope D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: `al_fixtof' declared as an `inline' variable D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: redefinition of `double al_fixtof' D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: `double al_fixtof' previously defined here D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: `al_fixed' was not declared in this scope D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:44: error: expected `,' or `;' before '{' token
D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:201: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:201: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: `al_fixtoi' declared as an `inline' variable D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: `al_fixed' was not declared in this scope D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: `al_fixtoi' declared as an `inline' variable D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: redefinition of `int al_fixtoi' D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: `int al_fixtoi' previously defined here D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: `al_fixed' was not declared in this scope D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:207: error: expected `,' or `;' before '{' token D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:213: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:213: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:219: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:219: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:225: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:225: error: `al_fixed' does not name a type
D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:231: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:231: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:242: error: `al_fixed' does not name a type D:/Dev-Cpp/include/allegro5/inline/fmaths.inl:242: error: `al_fixed' does not name a type
main.cpp:2:31: allegro5/a5_font.h: No such file or directory main.cpp:3:30: allegro5/a5_ttf.h: No such file or directory main.cpp:7: error: `main' must return `int'
main.cpp: In function `int main(...)': main.cpp:9: error: `al_init_font_addon' undeclared (first use this function) main.cpp:9: error: (Each undeclared identifier is reported only once for each function it appears in.) main.cpp:14: error: return-statement with no value, in function returning 'int' main.cpp:16: error: cannot convert `const char*' to `ALLEGRO_DISPLAY*' for argument `1' to `void al_set_window_title(ALLEGRO_DISPLAY*, const char*)' main.cpp:17: error: `ALLEGRO_FONT' undeclared (first use this function) main.cpp:17: error: `font' undeclared (first use this function) main.cpp:18: error: `al_load_ttf_font' undeclared (first use this function)
main.cpp:23: error: return-statement with no value, in function returning 'int' main.cpp:31: error: `ALLEGRO_ALIGN_CENTRE' undeclared (first use this function) main.cpp:31: error: `al_draw_text' undeclared (first use this function)
make.exe: *** [main.o] Error 1
Chyba przerzucę się na Code Blocks. |
|
1 « 2 » |