Message-ID: <39EA2BE3.C449FA6C@crosslink.net> Date: Sun, 15 Oct 2000 18:12:52 -0400 From: PrimeSide 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: Content-Type: multipart/alternative; boundary="------------AB0C08ED1787FCF609614143" 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 #include 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 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--