Thursday, July 30, 2009

My graphics in Turbo C/C++ does not initialise, help!?

I tried initgraph() and the program compiled but on running, the program said _initgraph() was undefined or something. I even copied and pasted the Graphics files, .bgi files in the same dierctory plzzzzzzzzzz help.

My graphics in Turbo C/C++ does not initialise, help!?
You have not linked Graphics libraries. In the TC IDE, go to Options-%26gt;Linker /(the one with another menu)-%26gt;Settings-%26gt;and then switch on the 3rd option that says Link Graphics


That should solve the problem.
Reply:yeah its correct. also verify the path of bgi files u given in initgraph function.


No comments:

Post a Comment