0

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

6
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by dng
2

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

0

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.

0

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.