Date: Wed, 17 Aug 1994 03:33:16 -0700 (PDT) From: "Frederick W. Reimer" Subject: Re: I almost got it! To: "Chendi Zhang (Guest)" Cc: djgpp AT sun DOT soe DOT clarkson DOT edu On Tue, 16 Aug 1994, Chendi Zhang (Guest) wrote: > Now when I compile a LIBGRX c file it says "Undefined Reference :'main'" So > I added main() {,} in and now it compiles but I get nothing on the screen! > No circles, lines, nothing. I just go back to the dos prompt. > please help me! > thanks > Chendi Zhang I do not know much about the LIBGRX library, but I do know something about C in general. Don't you need something other than an empty main function to have the program do anything? Are your graphics calls in another function? If so, you probably need to call this function from within main(). Does everyone else concur, or am I missing something here? You might try posting a minimal program so we can pick it appart. Sometimes it's hard to give helpful hints if we can't see what you're doing wrong. Hope this helps, Fred Reimer +-------------------------------------------------------------+ | The views expressed in the above are solely my own, and are | | not necessarily the views of my employer. Have a nice day! | | PGP2.6 public key available via `finger fwreimer AT crl DOT com` | +-------------------------------------------------------------+