Re: help request: clahe.c Graphics Gems

From: Al Bowers (xal_at_abowers.combase.com)
Date: 10/06/03


Date: Sun, 05 Oct 2003 20:43:01 -0400


stu7 wrote:

> +
> Sorry if this repeats.
>
> I've been trying to get clahe.c from Graphics Gems IV
> to run... however, it will not compile properly for me, from
> the code given in this book !
>
> ...here is a link to the code...
> (I edited it from html to text, and renamed it to clahe.c)
>
> http://www.acm.org/pubs/tog/GraphicsGems/gemsiv/clahe.c
>
> when using: gcc clahe.c -o CLAout
>
> ...I get an error about an object library, and "main"
>
> I dont know of a c debugger, so cant find where this error is
> occurring.
>

You need to use
gcc clahe.c -c

The file is a group of function definitions. There is no function
main so it will not make an executable.

The code compile for me. I did get a warning on this statement:
pImage = &pImagePointer[-uiSizeX];
The warning was about the suspicious unary minus operator.

You need to write or include a function main into the file to make
it executable.

--
Al Bowers
Tampa, Fl USA
mailto: xal@abowers.combase.com (remove the x)
http://www.geocities.com/abowers822/