Date: Thu, 20 Mar 1997 18:13:20 +0300 (IDT) From: Eli Zaretskii To: Abraham John Kannankeril cc: djgpp AT delorie DOT com Subject: Re: Graphics not working In-Reply-To: <33305EA3.243F@wsunix.wsu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 19 Mar 1997, Abraham John Kannankeril wrote: > The program compiled without errors, but while trying to run the program > it gave us following errors > > Error: grph1.o: In function 'main': > Error: undefined reference to 'initgraph' > In function 'setcolor(int)': > undefined reference to '__gr_color' Did you add -lbcc2 to your link command line? You should put it *after* all your source/object files but *before* -lgrx20. If you fail to mention -lbcc2, the linker doesn't search the BCC2GRX library, and you get undefined references. If the above doesn't help, post the exact command line that you use to compile/link your program.