Witam. Jestem bardzo początkującym programistom c++ w allegro. Z kursu wklejam kod:
#pragma comment(lib, "alleg.lib")
#include <allegro.h>
int main(){
allegro_init();
allegro_exit();
return 0;
}
END_OF_MAIN();
1>------ Build started: Project: projekt, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>Linking...
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\Marcin\Documents\Visual Studio 2008\Projects\projekt\Debug\projekt.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Users\Marcin\Documents\Visual Studio 2008\Projects\projekt\projekt\Debug\BuildLog.htm"
1>projekt - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Co jest źle? Proszę o łopatoligiczną pomoc.