Problems linking XGRASS

Justin Hickey jhickey at
Tue Sep 16 05:10:38 EDT 1997

Hello Stephan

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:

	#ifndef MAX
	#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
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
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 mailing list