Re: help request: clahe.c Graphics Gems
From: Al Bowers (xal_at_abowers.combase.com)
Date: 10/06/03
- Next message: Sidney Cadot: "Re: why still use C?"
- Previous message: Glen Herrmannsfeldt: "Re: sign magnitude, ones complement, two's complement"
- In reply to: stu7: "help request: clahe.c Graphics Gems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Next message: Sidney Cadot: "Re: why still use C?"
- Previous message: Glen Herrmannsfeldt: "Re: sign magnitude, ones complement, two's complement"
- In reply to: stu7: "help request: clahe.c Graphics Gems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]