# Graphics-Library
Download required libraries from here
## It is a tradition to use Turbo C for graphic in C/CPP. But it's also a pain in the neck. Here we are using Code::Blocks IDE, which will ease out our work.
Steps to run graphic code in CodeBlocks
## 1. Install Code::Blocks
Make sure you have installed Code::Blocks IDE on your machine. If you don't have this IDE or have any issue with compiler download and install it from here. http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe
## 2. Download the required header files
We need few files to be included in the lib folder of Code::Blocks.
Download the files from here https://github.com/SagarGaniga/Graphics-Library
## 3. Include graphics.h and winbgim.h
Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory.
Path: C:\Program Files (x86)\CodeBlocks\MinGW\include
## 4. Include libbgi.a
Copy and paste libbgi.a file in the lib folder of Code:Blocks
Path: C:\Program Files (x86)\CodeBlocks\MinGW\lib
## 5. Add Link Libraries in Linker Setting
* In the Code::Blocks application go to, Settings > Compiler
* In the Global Compiler setting, click on the Linker Settings
* In Link Libraries, Add and browse to C:\Program Files (x86)\CodeBlocks\MinGW\lib\ and select libbgi.a.
* Paste this in the Other Linker Option tab of Linker Settings (i.e. on the right-hand side)
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
* Save the setting and restart the application
### To test the setting copy paste any computer graphics code from
https://github.com/SagarGaniga/computer-graphics
没有合适的资源?快使用搜索试试~ 我知道了~
Graphics using Dev-C++
共4个文件
h:2个
md:1个
a:1个
需积分: 7 2 下载量 151 浏览量
2023-03-25
19:38:29
上传
评论
收藏 43KB ZIP 举报
温馨提示
To use graphic function in C/C++ while using Dev-C++ IDE we have to follow these steps. Copy header files files in Dev-C++ header files directory. Copy lib file in lib directory. Start Dev-C++ IDE. Press Ctrl + H (Project -> Project Options from menu) Select Parameters Tab. Paste the follwoing instructions in Linker Textarea. -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
资源推荐
资源详情
资源评论
收起资源包目录
DevC++Graphics-Library.zip (4个子文件)
Graphics-Library-master
graphics.h 13KB
libbgi.a 91KB
README.md 2KB
winbgim.h 13KB
共 4 条
- 1
资源评论
curating
- 粉丝: 2161
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功