How to use graphics.h in codeblocks?

前端 未结 5 1011
予麋鹿
予麋鹿 2020-11-27 20:39

I have recently started learning graphics in C++.

I tried #include in my program in codeblocks but it shows error. Then I downloaded

5条回答
  •  [愿得一人]
    2020-11-27 21:17

    You don't only need the header file, you need the library that goes with it. Anyway, the include folder is not automatically loaded, you must configure your project to do so. Right-click on it : Build options > Search directories > Add. Choose your include folder, keep the path relative.

    Edit For further assistance, please give details about the library you're trying to load (which provides a graphics.h file.)

提交回复
热议问题