I tried to compile a code written in C which had included the file "graphics.h".It worked fine in my desktop PC which had a VGA monitor.But when i tried to run the same code in my laptop,it showed some graphics error. why is it like this?fG

Recommended Answers

All 5 Replies

Welcome mshafi,
You got errors because graphics system of language is supported by the device. After all, your compiler is 17 years old. Now, it's time to say good bye to that compiler.
Number of free compilers with new standard are available : CodeBlock, Dev-C++, Visual C++ 2008.

Read more about standard c++ : http://david.tribble.com/letters.html
and don't forget to read an article written by siddhant - http://siddhant3s.googlepages.com/how_to_tell_rusted_cpp.html

Yes, go with adatapost's advice and get a current compiler.

If you need basic graphics, try out the SDL library. Easy and can do things far beyond what "graphics.h" could ever do.

your compiler is 17 years old. Now, it's time to say good bye to that compiler.[/URL]

well said.

I tried to compile a code written in C which had included the file "graphics.h".It worked fine in my desktop PC which had a VGA monitor.But when i tried to run the same code in my laptop,it showed some graphics error. why is it like this?fG

Some graphics error is like telling your mechanic "my car made a noise" and expecting him to fix it.

Info! There are sticky posts at the top of the forum list that explain what we need to help you -- with the words Read me...

I tried to compile a code written in C which had included the file "graphics.h".It worked fine in my desktop PC which had a VGA monitor.But when i tried to run the same code in my laptop,it showed some graphics error. why is it like this?fG

What error are you getting?

--
dng

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.