Mail Archives: djgpp/1997/11/26/19:18:20
Walter Luke wrote:
>
> The following code:
>
> #include "graph.h"
>
> main() {
>
> g_set(10,10,2);
>
> }
>
> Returns the error "undefined reference to 'g_set'". The same is true
> of any other call to a function in graph.h. Can someone point me in the
> right direction here?
DJGPP doesn't have a graph.h; might that be your problem? You are
apparently trying to use Borland/Watcom graphics code with DJGPP, which
does not work. DJGPP has several graphics library packages, including
GRX 2.2, which is designed to have an interface similar to Borland's.
There is also an interface library called 'bcc2grx' which allows you to
port Borland graphics code to DJGPP. Both of these packages can be
found in the 'v2tk' directory of any SimTel DJGPP mirror.
I also recommend that you download and read chapters 10, 17, and 18 of
the DJGPP Frequently Asked Questions list, to see the many differences
between 16-bit real mode and 32-bit protected mode graphics.
--
---------------------------------------------------------------------
| John M. Aldrich | "A woman is not property, and hus- |
| aka Fighteer I | bands who think otherwise are living |
| mailto:fighteer AT cs DOT com | in a dreamworld." |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -