User forums > General (but related to Code::Blocks)

missing header files

(1/1)

kaloxy:
Hi

I just installed Code::Blocks, and i am just learning how to code ... however this simple code below gives erros ....

#include <stdio.h>
#include <graphics.h>
#include <conio.h>

int main()
{
   
    return 0;
}

coddeblocks graphics.h: No such file or directory|

How can i resolve this and such futures header files i may need.

MortenMacFly:

--- Quote from: kaloxy on April 20, 2009, 10:56:49 am ---coddeblocks graphics.h: No such file or directory|

--- End quote ---
- get the SDK's you need (those who provide the header and probably library files)
- install / extract the files to a place as you like
- setup the include path's for the compiler and linker correctly in your project options

BTW: graphics.h is not a default C/C++ include file. I don't know what framework it belongs to - you need to figure out yourself. C::B cannot and will not ship with each and every framework (as every other IDE does not, too). It just provided you with the MinGW/GCC compilers and files.

ollydbg:
graphics.h is an old Borland Turbo C++ or Borland C++ header file support graphics in MS-DOS.

Also, someone has created a version for running in windows. You can search it by Google.

saidus:

--- Code: ---#include <graphics.h>
#include <conio.h>
--- End code ---
are the TCC header from borland
i think you can find what u are seeking in this site
http://www.delorie.com/djgpp/
 :D

Navigation

[0] Message Index

Go to full version