Mail Archives: djgpp/1995/04/18/10:28:25
The test programs that came with the grx library compile fine.
However, when I rearranged the programs I had problems. I tried to
make one .c file to set the mode and draw the pictures, but when I try
to compile I get an error. What is wrong with my code?
this file:
#include <grx.h>
#include <stdio.h>
#include <stdlib.h>
main()
{
GrSetMode(GR_default_graphics);
int x = GrSizeX();
int y = GrSizeY();
int ww = (x / 2) - 10;
int wh = (y / 2) - 10;
int c;
GrContext *w1 = GrCreateSubContext(5,5,ww+4,wh+4,NULL,NULL);
}
gives me a error along the lines of "parse error before 'int' ..."
What am I missing?
eternally thankful for all the patience...
Daniel.
- Raw text -