How do you get Linux to load a GIF?

Mar 2, 2008 at 11:00pm
closed account (L1T0RXSz)
I'm sorry, this doesn't sound very advanced... I'm sort of a novice to C++ therefore I don't know this. Okay, I am trying to do some work on Linux but I don't know how to load a GIF file on it. I use Red Hat (it's a really old one, like 5-10 years) and the GIF loader on the main page of cplusplus.com doesn't work- when I try to use it it won't compile because of "windows.h" Can someone please help me?
Mar 6, 2008 at 9:51pm
That's windows-specific code, it won't work on Linux :|. Where is the gif loader you found? Maybe I can find you a Linux equivalent.

I am unsure though if I'll be able to find one that would compile on such an old machine... is there some reason as to why you can't update it?
Mar 6, 2008 at 11:13pm
closed account (L1T0RXSz)
Actually I don't care about the operating system. I know Red Hat Linux is old but I also have a Scientific Linux that is working fine. Will that work? Actually the website where I found the gif loader is on cplusplus.com (http://cplusplus.com/src/) then scroll down till you get to "Windows programs". There will be a BMP loader and GIF view.

Thanx for the reply,
Akash
Mar 8, 2008 at 3:39am
If you give me a day or two I'll give you something simple based on the old Steve Wilhite/Steve Bennett code.

Are you using C or C++?

Otherwise, you might just google "c/c++ gif decoder" and see what you get...
Topic archived. No new replies allowed.