This compiles OK but the linking generates the following errors : -

--------------------Configuration: One - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/One.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

One.exe - 2 error(s), 0 warning(s)

Code :

#include "iostream.h"
#include "allegro.h"
int main()
{
allegro_init();
install_keyboard();
//set_gfx_mode(GFX_VGA,320,200,0,0); //Remove "//" if want to use resolution: 320x200 instead of 640x480.
set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
set_pallete(desktop_pallete);
textout_centre(screen, font, "Hello, World!", SCREEN_W/2, SCREEN_H/2, 255);
readkey();
return 0;
}


Any help?
Thanks