graphics.h programs not running in Dosbox Windows 7 environment
I have installed Dosbox to run Turbo C in it. But my 开发者_开发问答graphics.h programs are not executing in it. I am getting Linker Error which says"Undefined sumbol initgraph in module..." and so on.
The problem you are facing is quite simple to solve.
Open your Turboc IDE
Click on options click on linker click on libraries mark the graphics option(a cross mark usually) now run.
You are not linking the required graphics library. It has been quite a while since I last used Turbo C, but if I remember correctly, you can simply configure the toolchain to link the graphics lib in the linker options which are easily accessible from the Turbo C "IDE".
If You are getting Error in Windows XP that Undefined symbol initgraph in module
then follow the Steps :
Go to Console
Go to Options
Go to Linker
Go to Libraries
Make "X" Mark on Graphics Library
精彩评论