LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2010, 06:56 AM   #1
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Rep: Reputation: 15
help: graphics on codeblock


Hi!

I'm used to write simple programs on codeblock which run on consle. i.e.console applications. When I try to compile programs which need graphic features, I get stuck as many libraries 9especially header files) are not in MINGW/include folder so I have to search on the net and add those files into include. My question is, by default, to enable graphics features on code block which "folder" should I download and incorporate it into codeblock? I tried to follow examples on glut, opengl, that is you have to download glut and add it somewhere on codeblock. Now I just want to have graphics functionality especially which need graphics.h file, searched on the net and find that sometime you have to download BGI, sometimes you have to download SDL, etc.

I hope you get the picture of what I'm trying to understand, it seems that by default codeblock doesn't come with graphic functionality e.g.graphics.h file, now what shall I download, and where do I add it so that I can draw graphs etc on codeblock.

[codeblock has /include folder in C:\Program Files\CodeBlocks\MinGW\include, now whenever I download new feature e.g. glut has its own version of include, lib folders etc. Is it necessary to add those include, lib on inlude, lib of C:\Program Files\CodeBlocks\MinGW? or it should work on its own original path? suppose I download glut on C:\Program Files\CodeBlocks\Glut. Now, what folder should I download to have graphics on codeblock?...

I hope my question has been understood although I have explained in a repeatitive way as I'm a newbie on compiling programs

Cheers,
Stefano
 
Old 01-26-2010, 08:19 AM   #2
embed
LQ Newbie
 
Registered: Mar 2009
Distribution: Pardus, Ubuntu, Arch, H:1, QTmoko
Posts: 14

Rep: Reputation: 2
graphics.h is the header for graphics in DOS mode, as far as I know. If this is what you want, you can search the web for a while, and probably encounter the file somewhere. If you want to use modern graphic tools, use OpenGL/Glut, or SDL. If you want to make a GUI application, toolkits like GTK+, Qt, WxWidgets are the way to go.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenGL/Glut/Codeblock : compile error - - undefined reference to... stefanolima Programming 2 01-14-2010 08:53 AM
wxWidgets on CodeBlock:Tetris Game - cannot find -lwxmsw_core stefanolima Programming 1 01-10-2010 01:14 AM
S3 SuperSavage IXC 64 SDL graphics card Opensuse 11.1 slow graphics Infasoft SUSE / openSUSE 0 03-12-2009 09:07 AM
Sound and Graphics not working in Intel D101GGC with ATI graphics and Realtek audio sanu1 Linux - Hardware 2 12-28-2008 07:29 PM
LXer: Xi Graphics, Inc. Releases Graphics Drivers for ATI FireMV Cards LXer Syndicated Linux News 0 09-27-2006 09:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration