I am trying to compile a program which includes the graphics.h
header file for C. I have added the graphics.h
and winbgim.h
header files in the include folder and also libbgi.a
to lib folder.
Just for testing, I made a simple hello world program and included the graphics.h
header file.
But on compiling I got the following error:
In file included from firstc.c:2:0: c:\mingw\bin../lib/gcc/mingw32/4.7.1/../../../../include/graphics.h:30:59: fatal error: sstream: No such file or directory compilation terminated.
I tried to search in other forums as well, where the same question had been asked, but could not get an answer.
Another question, I came across other graphic options for C and C++ like openGL and DirectX. Should I learn these instead of graphics.h?
The common initial reaction when is to find and blame an error occurs someone. However, even apparently single events or errors are due most often to the convergence of multiple contributing factors. Blaming an individual does not change these factors and the same error is likely to recur.
: something that is not correct : a wrong action or statement : mistake. [count] I made an error in my calculations. They uncovered several errors in his report to the committee. The paper contains numerous spelling errors.
Sentence Errors are errors related to grammar and mechanics within sentences in Standard Written English. Related Concepts: Awkward Sentence Structure; Style; Styles of Writing. “Students make errors in the process of learning, and as they learn about writing, they often make new errors, not necessarily fewer ones.
Complete answer: Systematic error is defined as the error due to resolution of a measuring instrument. The systematic errors are found to be the errors in the measurement due to the errors in the instruments or the data handling system.
graphics.h
is a non-standard header. Most likely it refers to the old BGI graphics library of the Turbo C DOS compiler. It will only work on that particular compiler. And of course DOS is a completely obsolete OS nowadays.
If you are interested in 3D graphics programming, then OpenGL and/or DirectX are indeed better, modern alternatives, supported by many compilers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With