Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > help request: clahe.c Graphics Gems

Reply
Thread Tools

help request: clahe.c Graphics Gems

 
 
stu7
Guest
Posts: n/a
 
      10-05-2003
+
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.


 
Reply With Quote
 
 
 
 
Al Bowers
Guest
Posts: n/a
 
      10-06-2003


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: (remove the x)
http://www.geocities.com/abowers822/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating binary gems, from source gems Patrick Hurley Ruby 0 03-04-2007 09:47 PM
Problem getting gems/listing gems. EINVAL Thaddeus L Olczyk Ruby 0 08-15-2006 05:26 AM
Gems -- #include <gems.hpp> Tomás C++ 7 03-05-2006 02:48 PM
'private' gems/gems hierarchy Dany Cayouette Ruby 3 11-25-2005 10:55 PM
Confusion about gems and non-gems working together. Lloyd Zusman Ruby 3 06-20-2005 11:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57