简体   繁体   中英

How to fix turbo c++ error “Cannot open include file: graphics.h: no such files or director”

I had been using turbo c++ compiler in windows xp but i have installed windows 7 yesterday and now i am having a small problem, turbo c++ is not working in window 7 ultimate 64bit. It say "Cannot open include file: graphics.h: no such files or directory" when i wanna include header file.

Check your include directory settings and make sure they are referring to the right location and graphics.h is in that location. I am assuming you are using

#include <graphics.h> 

rather than

 #include "graphics.h"

I'm not sure the code will need to change (as it was compiling before presumably) but more you need to add some folders to the system include paths.

I am also curious as to why you'd be using TurboC++. I'm still using VC6 at work and I consider that ancient!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM