delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/24/00:45:28

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GRX
Date: Wed, 23 Oct 1996 19:53:04 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 24
Message-ID: <326EDA10.5EE5@cs.com>
References: <19961022 DOT 201644 DOT 9118 DOT 0 DOT waldo666 AT juno DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp110.cs.com
Mime-Version: 1.0
To: Will C Stockwell <waldo666 AT juno DOT com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Will C Stockwell wrote:
> 
> Ok, I used my brain and looked at the source for help with GrSetMode:-).
> But now I can't compile this program that draws a line. The
> compiler(gcc.exe of course) says I have an undefined reference to
> GrSetMode and GrLine. Here's my code, what did I do wrong? Thanks. Any
> help would be great. I really want to make programs using graphics, but
> this is holding me back.

Try linking the grx library when you compile, as in:

gcc -o prog.exe prog.c -lgrx

-- 
John M. Aldrich <fighteer AT cs DOT com>                      

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


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