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

Problem z allegro

Ostatnio zmodyfikowano 2011-08-21 22:43
Autor Wiadomość
Morri
Temat założony przez niniejszego użytkownika
Problem z allegro
» 2011-08-21 13:06:31
Witam
Mam problem z bibliotekami typu allegro. wszystko zrobiłem tak jak napisane w kursie na stronie,ale wyskakują mi błedy takie jak:
allegro.h: No such file or directory
`allegro_init' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
Co mam z tym zrobić jeżeli chcę uczyć się korzystania z allegro.
P-39600
pekfos
» 2011-08-21 13:41:29
to znaczy że nie można znaleźć pliku allegro.h w którym jest wszystko.
sprawdź czy go masz tam gdzie powinien być.
P-39601
Morri
Temat założony przez niniejszego użytkownika
» 2011-08-21 13:55:33
miałem ją w folderze allegro który był w folderze z bibliotekami i skopiowaniu jej do normalnego folderu nie wyskakuje mi już błąd o ie znalezieniu pliku, ale dalej mam `allegro_init' undeclared (first use this function) i to samo z allegro-exit.
P-39602
pekfos
» 2011-08-21 13:59:42
sam plik allegro.h nie wystarczy. muszą być także wszystkie pliki biblioteki.
powinno być tak że allegro.h jest w folderze include kompilatora razem z  folderem allegro z resztą plików nagłówkowych.
P-39603
Morri
Temat założony przez niniejszego użytkownika
» 2011-08-21 14:12:49
dokładnie tak mam ale i tak mam ten sam problem z allegro_init
P-39604
pekfos
» 2011-08-21 14:26:12
daj log kompilacji bo coś kręcisz :P
P-39605
Morri
Temat założony przez niniejszego użytkownika
» 2011-08-21 18:41:57
Kompilator: Default compiler
Wykonywanie  g++.exe...
g++.exe "C:\Users\user\Documents\programowanie\allegro\main.cpp" -o "C:\Users\user\Documents\programowanie\allegro\main.exe"    -I"D:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include"  -I"D:\Dev-Cpp\include\c++\3.4.2\backward"  -I"D:\Dev-Cpp\include\c++\3.4.2\mingw32"  -I"D:\Dev-Cpp\include\c++\3.4.2"  -I"D:\Dev-Cpp\include"   -L"D:\Dev-Cpp\lib"
C:\Users\user\Documents\programowanie\allegro\main.cpp: In function `int main()':
C:\Users\user\Documents\programowanie\allegro\main.cpp:4: error: `allegro_init' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:4: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Users\user\Documents\programowanie\allegro\main.cpp:5: error: `install_keyboard' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:6: error: `set_color_depth' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:7: error: `GFX_AUTODETECT' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:7: error: `set_gfx_mode' undeclared (first use this function)

C:\Users\user\Documents\programowanie\allegro\main.cpp:8: error: `default_palette' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:8: error: `set_palette' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:9: error: `screen' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:9: error: `clear_to_color' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:10: error: `font' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:10: error: `makecol' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:10: error: `textout_ex' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:12: error: `readkey' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp:14: error: `allegro_exit' undeclared (first use this function)
C:\Users\user\Documents\programowanie\allegro\main.cpp: At global scope:
C:\Users\user\Documents\programowanie\allegro\main.cpp:17: error: expected constructor, destructor, or type conversion before ';' token

Wykonanie zakończone
P-39623
pekfos
» 2011-08-21 19:02:16
hmm, daj kod :)
P-39626
« 1 » 2
  Strona 1 z 2 Następna strona