   Undefined refrence to WinMain16
  I'm just wondering what it means "Undefined refrence to WinMain16id returned 1 exit status[build error] [NINJA.exe] Error 1"Thanks =)I don't see any problems with my program o_O.   
  Your linker is looking for a windows entry point.You need to have a main or WinMain function in any program, where execution starts.  If you have provided a main function, your build settings may be messed up/in need of changing.HTAQTSM suggests supplying:1)  Source code (so we can see any problems with your program)2)  The name and version of what you're using to build this with.3)  The language you're using (although I can tell here, this time)HTH,    -Mike   ;  Oh sorry =DI have a main here, but I can't see the problem =(Btw, how do I put this in a tiny Iframe?#include <allegro.h>int Xpos = 640;int Ypos = 480;int direction = 4;void controlall(){ if(key[KEY_UP]){Xpos --;Ypos --;direction = 1;}else if(key[KEY_LEFT]){  Xpos --;  Ypos ++;  direction = 2;}else if(key[KEY_RIGHT]){ Xpos ++; Ypos --; direction = 3;}else if(key[KEY_DOWN]){Xpos ++;Ypos ++;direction = 4;}}void drawing(){BITMAP*facenorthwest = load_bitmap("facenorthwest.bmp",0);BITMAP*facenortheast = load_bitmap("facenortheast.bmp",0);BITMAP*facesouthwest = load_bitmap("facesouthwest.bmp",0);BITMAP*facesoutheast = load_bitmap("facesoutheast.bmp",0);if(direction == 1){   masked_blit(facenorthwest,screen,0,0,Xpos,Ypos,64,64);}else if(direction ==2){   masked_blit(facesouthwest,screen,0,0,Xpos,Ypos,64,64);}else if(direction ==3){   masked_blit(facenortheast,screen,0,0,Xpos,Ypos,64,64);}else if(direction ==4){   masked_blit(facesoutheast,screen,0,0,Xpos,Ypos,64,64);}}int main(){    allegro_init();    install_keyboard();    set_color_depth(16);    set_gfx_mode(GFX_AUTODETECT,640,480,0,0);while(!key[KEY_ESC])    {    controlall();    drawing();    }allegro_exit();    return 0;}   ;  Use [ source ], [ /source ] tags (except without the spaces.Visual Studio has two kinds of projectsWindows Applications expect to link with a function called WinMainWindows Console Applications expect to link with a function called mainYou have a mismatch.This may be because allegro changes your main function behind the scenes - try replacing int main()withint main(int argc, const char* argv[])Which allegro may recognize and change properly   ;  IIRC, Allegro also requires this weird END_OF_MAIN macro to appear after main(); you may want to [google] about that.   ;  Ohhh! thank you!   