I am a complete beginner in allegro and i just installed allegro correctly and this is my code(my first code):
#include
#include
#include
#include
#include
int main()
{
ALLEGRO_DISPLAY *display;
if (!al_init())
{
al_show_native_message_box(display,
NULL,
NULL,
"Could not initialize allegro 5",
NULL,
NULL);
}
display = al_create_display(800, 600);
if (!display)
{
al_show_native_message_box(display,
NULL,
NULL,
"Could not initialize allegro WINDOW ",
NULL,
NULL);
}
al_rest(5.0);
al_destroy_display(display);
return 0;
}
Now this is what the build log displays:
1>------ Build started: Project: Allegro_intro, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\krish\desktop\projects\allegro_intro\allegro_intro\main.cpp(11): warning C4700: uninitialized local variable 'display' used
1>main.obj : error LNK2005: _main already defined in font.obj
1>C:\Users\krish\Desktop\Projects\Allegro_intro\Debug\Allegro_intro.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
And then there is a dialog box that says " UNABLE TO START PROGRAM... The system cannot find the file specified". Please tell me what to do about this
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)