Date: Tue, 18 Apr 1995 01:22:06 -0500 To: djgpp AT sun DOT soe DOT clarkson DOT edu From: dpmurach AT students DOT wisc DOT edu (Daniel Murach) Subject: contexts and such... 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 #include #include 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.