grx2.4 and mingw32 For simplicity I wrote a short program.. For compiling with fortran I have to compile it as follows: gcc -c test.c g77 -o test test.o -lgrx20 -mwindows I need g77 for linking with FORTRAN code requiring the FORTRAN libraries.. test does do nice things (no window for the graphics context..) The MAIN__ (required as PROGRAM xxx for the fortran library) and GRXMain seem to be fighting against each other.. -- test.c -- #include <grx20.h> #include <malloc.h> static int xmax, ymax, status; int MAIN__() { GRXMain(); } int GRXMain() { gstest1(); } gstest1() { long nplanes; int points[4][2] = {{30,30},{300,30},{300,300},{30,300}}; GrLineOption GSDefinition; /* Initialisiere Graphik */ GrSetMode(GR_default_graphics); xmax=GrMaxX(); ymax=GrMaxY(); /* Initialisiere eine Farbe (Rot) */ GrSetColor( 2, 255, 0, 0); /* Zeichne Viereck mit Groesse des Bildschirms -10 */ GrBox(10, 10, xmax-10, ymax-10, 2); GrSetMode(GR_default_text); } --- Any idea? Gerhard Schneider -- Gerhard Schneider e-Mail: gs@ilfb.tuwien.ac.at Institute of Light Weight Structures (E317) Tel.: +43 1 58801 31716 Vienna University of Technology / Austria Fax: +43 1 58801 31799 A-1040 Wien, Gusshausstrasse 27-29 http://ilfb.tuwien.ac.at/~gs/
participants (2)
-
Gerhard Schneider -
Mariano Alvarez Fernandez