Problems linking XGRASS
jhickey at impact1.hpcc.nectec.or.th
Tue Sep 16 05:10:38 EDT 1997
On Sep 15, 5:21pm, Stephan Eickschen wrote:
> Subject: Problems linking XGRASS
> Hello all,
> I thought, that everything should work, BUT:
> > ld32: ERROR 33: Unresolved text symbol "MAX" -- 1st referenced by
> Up to now, I know, that MAX(...) is defined in color.c. How can I tell
> the rest of the sources to use the definition????
An easier way to solve this than trying to link in color.c may be to put the
following in the file $GIS/src/xgrass/libes/Xgi/Help.c near the top, after all
the #include statements:
#define MAX(a, b) ((a)>(b)?(a):(b))
This is basically the same operation that is wanted in Help.c and avoids
messing with the Gmakefile. I had the same problem and solved it this way and
things seem to work for me. It's not the most elegant solution but it is simple
and it works. Someone else on the list may have a better suggestion though. Let
me know if there are any problems with this.
Hope this helps.
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
More information about the grass-user