From: "Bob Bailey" Newsgroups: comp.os.msdos.djgpp Subject: how to compile allegro program Date: Thu, 26 Oct 2000 11:49:02 +0800 Organization: Ht.net news server Lines: 41 Message-ID: <8t8dq7$7dph0$1@news.ht.net.tw> NNTP-Posting-Host: 210.200.143.164 X-Trace: news.ht.net.tw 972536455 7792160 210.200.143.164 (26 Oct 2000 05:00:55 GMT) X-Complaints-To: root AT news DOT ht DOT net DOT tw NNTP-Posting-Date: 26 Oct 2000 05:00:55 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yesterday I started trying to use Allegro. My current goal is to write custom data plotting programs. Nothing fancy. I got Allegro 3.9.33 installed OK, and the example programs run OK. However, when _I_ compile, for example, the exhello.c program, it takes much longer for the program to end and return to the DOS prompt than the installed exhello.exe program. The probem would seem to be the way I compile my own version of exhello.c. The supplied makefiles are just too complicated to unravel and do whatever they do to compilie the program. You could say that I don't know what to make of it. :) (Would be nice if software writers would include instructions for compiling, not just installation.) I'm using an Intel Pentium III computer running Windows 98 SE, and compiling with the latest DJGPP stuff. But, I'm not sure what to put in my makefile. The allegro information does not seem to address this issue, other than the generic: gcc foo.c -o foo.exe -lalleg This works, but much slower than the installation supplied versions. I also tried compiling with CFLAGS= -Wall -O6 -mpentium -ffast-math LFLAGS= $(CFLAGS) exhello.exe: exhello.o (tab)gcc $(LFLAGS) -o $@ exhello.o -lalleg but, I get no better performance. Thanks for any help. -- Bob Bailey bbailey AT mail DOT apol DOT com DOT tw