www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/15/18:15:13

Message-ID: <39EA2BE3.C449FA6C@crosslink.net>
Date: Sun, 15 Oct 2000 18:12:52 -0400
From: PrimeSide <humes AT crosslink DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't figure out how to compile allegro
References: <OF2751478E DOT 0317C64F-ONC1256967 DOT 00370497 AT privateware DOT nl>
Organization: CrossLink Internet Services 1-888-4-CROSSLINK
Cache-Post-Path: pizza.crosslink.net!unknown AT dyn49 DOT c5200-1 DOT easton DOT 242 DOT crosslink DOT net
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Lines: 65
NNTP-Posting-Host: 206.246.124.14
X-Trace: dingus.crosslink.net 971648060 20293 206.246.124.14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

--------------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&nbsp; legtest.c file:</tt><tt></tt>
<p><b><tt>#include &lt;stdio.h></tt></b>
<br><b><tt>#include &lt;allegro.h></tt></b><b><tt></tt></b>
<p><b><tt>int main()</tt></b>
<br><b><tt>{</tt></b>
<br><b><tt>&nbsp;allegro_init();</tt></b><b><tt></tt></b>
<p><b><tt>&nbsp;if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) &lt; 0)
{</tt></b>
<br><b><tt>&nbsp; printf("Error setting the display mode.");</tt></b>
<br><b><tt>&nbsp; allegro_exit();</tt></b>
<br><b><tt>&nbsp; return 0;</tt></b>
<br><b><tt>&nbsp;}</tt></b><b><tt></tt></b>
<p><b><tt>&nbsp;allegro_exit();</tt></b>
<br><b><tt>&nbsp;printf("Successful Setup!");</tt></b>
<br><b><tt>&nbsp;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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019