cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/19/23:09:46

Date: Wed, 19 Mar 1997 22:00:51 -0600 (CST)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: Abraham John Kannankeril <joji AT wsunix DOT wsu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Graphics not working
In-Reply-To: <33305EA3.243F@wsunix.wsu.edu>
Message-ID: <Pine.SUN.3.95.970319215944.11581A-100000@bert.eecs.uic.edu>
MIME-Version: 1.0

Are you using GRX? If not this is not going to work. you will need GRX
which I believe (I do not use it personally) has like Borland function
calls. I would suggest using allegro for graphics though.

On Wed, 19 Mar 1997, Abraham John Kannankeril wrote:

> The following program is giving errors. Please help us!!!
> 
> 
> #include <iostream.h>
> #include<stdio.h>
> #include <stdlib.h>
> #include <process.h>
> #include <conio.h>
> #include <libbcc.h>
> 
> int main()
> {
>   int gdriver=DETECT,gmode, errorcode;
>   int  midx,midy;
> 
> 
>   initgraph(&gdriver,&gmode,"" );
>   errorcode=graphresult();
>   if (errorcode!=grOk)
>   {
>      cout<<"Graphics function error: "<<grapherrormsg(errorcode)<<endl;
>      cout<<"Hit a key to stop: ";
>      getch();
>      exit(1);
>   }
> 
>   setbkcolor(BLACK);
>   setcolor (BLUE);
>   closegraph();
>   return (0);
> }
> 
> 
> 
> 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'      
> There were some errors
> 
> It gave similar errors for 'setbkcolor()' too.
> 
> Abraham & Arti
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019