From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: PREVIOUS ? CODE!! Organization: Pin Eight Software Message-ID: <95ap7sgq12tu6mam42h279p9t8a9phghoh@4ax.com> References: <387A90E0 DOT 85327532 AT sympatico DOT ca> <200001121203 DOT GAA07004 AT lakdiva DOT slt DOT lk> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 X-Trace: /K+neRHA2vMiojvOMs7fCbTfcsqeZsAqyKSZlAMQrONj0LQxyDc7qSwDV97yN1kHupV9rtsS569r!NKmVWpUMUYMXK22UNDmWx1nPZD9KzikHFXW/svE8i+FLowBM4ISl8JlMatgK5eYLqDU450KDvA== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 12 Jan 2000 16:19:32 GMT Distribution: world Date: Wed, 12 Jan 2000 16:19:32 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Kalum Somaratna aka Grendel" wrote in message <200001121203 DOT GAA07004 AT lakdiva DOT slt DOT lk>... > >A summary of the 2 errors I found were. >1. file 051sc.c - there is a missing "{" after the circle_init function. >Please add it. >2. file 051s.c- please remove the line "END_OF_MAIN()" after the >main function. [snip] > shutdown(); /* shut down anything that needs it */ > allegro_exit(); /* just for luck */ > return 0; /* tell the OS that all went well */ >} >//END_OF_MAIN() <---please remove this statement or comment >it out as I have already done with two "//". It is the one causing you >the other problems. In Allegro programs, END_OF_MAIN(); should always immediately follow the main() function so that X and Windows versions of the program can work properly. -- Damian Yerrick http://yerricde.tripod.com/ View full sig at http://www.rose-hulman.edu/~yerricde/sig.html