Mail Archives: djgpp/2000/10/15/18:15:13
--------------AB0C08ED1787FCF609614143
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I had always thought that Allegro screwed up when I ran make.exe; until
I just tried to run a program. I don't know why Allegro outputs all that
junk when running make.exe, but it usually isn't a problem. To test,
just save this into legtest.c file:
#include <stdio.h>
#include <allegro.h>
int main()
{
allegro_init();
if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) < 0) {
printf("Error setting the display mode.");
allegro_exit();
return 0;
}
allegro_exit();
printf("Successful Setup!");
return 0;
}
and then compile with this command line:
gcc legtest.c -o legtest.exe -lalleg
and if it runs (SUCCESS) you're okay, otherwise - post again.
--------------AB0C08ED1787FCF609614143
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt>I had always thought that Allegro screwed up when I ran make.exe; until
I just tried to run a program. I don't know why Allegro outputs all that
junk when running make.exe, but it usually isn't a problem. To test, just
save this into legtest.c file:</tt><tt></tt>
<p><b><tt>#include <stdio.h></tt></b>
<br><b><tt>#include <allegro.h></tt></b><b><tt></tt></b>
<p><b><tt>int main()</tt></b>
<br><b><tt>{</tt></b>
<br><b><tt> allegro_init();</tt></b><b><tt></tt></b>
<p><b><tt> if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) < 0)
{</tt></b>
<br><b><tt> printf("Error setting the display mode.");</tt></b>
<br><b><tt> allegro_exit();</tt></b>
<br><b><tt> return 0;</tt></b>
<br><b><tt> }</tt></b><b><tt></tt></b>
<p><b><tt> allegro_exit();</tt></b>
<br><b><tt> printf("Successful Setup!");</tt></b>
<br><b><tt> return 0;</tt></b>
<br><b><tt>}</tt></b><tt></tt>
<p><tt>and then compile with this command line:</tt><tt></tt>
<p><tt>gcc legtest.c -o legtest.exe -lalleg</tt><tt></tt>
<p><tt>and if it runs (SUCCESS) you're okay, otherwise - post again.</tt></html>
--------------AB0C08ED1787FCF609614143--
- Raw text -