help request: clahe.c Graphics Gems

S

stu7

+
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.

Any help with this would be greatly appreciated.

(e-mail address removed)
 
A

Al Bowers

stu7 said:
+
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,061
Members
48,769
Latest member
Clifft

Latest Threads

Top