Maurice.Lombardi at ujf-grenoble.fr
Wed Mar 25 13:04:36 CET 2009
Hünniger a écrit:
> I am trying to compile an old pascal code with gpc. There was a problem
> with the autolinker, symbols collided between ncurses and grx (I think)
> ,so I removed it and build a command line manually in a makefile. I
> turned off the graphics and everything worked fine, it compiled linked
> and produced the desired output. Now I am trying to turn the graphics on
I had the same problem long time ago.
The only conflict was with the functions getmaxx and getmaxy of the bgi
subsystem, which you do not use.
So either compile grx without bgi support (there is an option in makedefs.grx)
or apply the attached patch to grx248s which solves more cleanly the problem by
repacing getmaxx, getmaxy by getmaxX, getmaxY in grx/bgi (at the C and linker
levels, pascal is case insensitive).
You can then compile everything cleanly as usual with automake.
Laboratoire de Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:Maurice.Lombardi at ujf-grenoble.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4056 bytes
Desc: not available
More information about the Gpc