Allegro w Visual Express 2010
Ostatnio zmodyfikowano 2011-11-27 13:02
malan |
» 2011-11-27 11:55:01 << removed by malan >> |
|
CTRL85 Temat założony przez niniejszego użytkownika |
» 2011-11-27 12:00:43 @up - 404 |
|
malan |
» 2011-11-27 12:03:23 Eh :/ Sory :/ Ogólnie chodzi o to, że jeżeli chcesz używać Allegro z WinAPI to musisz dodać odpowiedni nagłówek: #include <allegro.h> #include <winalleg.h> #include <windows.h>
|
|
|
CTRL85 Temat założony przez niniejszego użytkownika |
» 2011-11-27 12:09:15 Nie chcę używać, ale Visual mi każe :P Jak dodałem winalleg.h przed windows.h, to wywala znowu błąd ze _sleep();
1>------ Build started: Project: BlackJack, Configuration: Debug Win32 ------ 1> main.cpp 1>c:\users\ctrl85\desktop\moje!\takie tam\c++\baza\blackjack\main.cpp(783): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843) : see declaration of '_sleep' 1>c:\users\ctrl85\desktop\moje!\takie tam\c++\baza\blackjack\main.cpp(827): warning C4996: '_sleep': This function or variable has been superceded by newer library or operating system functionality. Consider using Sleep instead. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdlib.h(843) : see declaration of '_sleep' 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\CTRL85\Desktop\MOJE!\takie tam\C++\baza\BlackJack\Debug\BlackJack.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
|
malan |
» 2011-11-27 12:10:41 Błąd jest jeden: 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
Spytaj wujka Google. |
|
CTRL85 Temat założony przez niniejszego użytkownika |
» 2011-11-27 13:02:15 Wilekie dzięki! Wreszcie skompilowało się, i działa. Jeśli ktoś miałby podobny problem:
1. alt + F7 2. linker->system 3. zmienić subsustem na Windows |
|
1 « 2 » |