problem in including graphic library in code blocks

643 views
Skip to first unread message

Deepak Tak

unread,
Mar 26, 2013, 6:57:55 AM3/26/13
to pu...@googlegroups.com
hello everyone i have a problem with my code blocks
i want to include  and graphics.h lib in codeblocks and tried many sites but solution given is not working please help
(i tryed cp these files in include and libbgi.a into lib folder
 then copy this "-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32" to linker )
when i compile program it open graphics.h and says  for #include<sstream> there is not such directory
please help me out.......


regards:
deepak

karan pratap singh

unread,
Mar 26, 2013, 3:47:29 PM3/26/13
to pu...@googlegroups.com
Dude! At least google stuff before asking here :P

You are trying to include graphics.h ? which is a Turbo C specific file and has nothing to do with the standard C/C++ libraries! In short it is not compatible with the compiler running inside Codeblocks :P

So you can use SDL instead or Allegro etc.

I recommend SDL for simple 2D graphics! :) Here are some GREAT SDL tutorials, http://www.lazyfoo.net/SDL_tutorials/


--
regards,
Karan Pratap Singh

blogcom...@gmail.com

unread,
Apr 2, 2013, 2:24:17 AM4/2/13
to pu...@googlegroups.com

thanks sir .....badola sir told me about sdl .......i think that to learn graphic i have to learn both (graphic,sdl ).......so i tried to include graphic library.......
thanks again

regard
deepak tak

Sarthak Garg

unread,
Apr 23, 2013, 2:25:17 PM4/23/13
to pu...@googlegroups.com


On Tuesday, April 2, 2013 11:54:17 AM UTC+5:30, blogcom...@gmail.com wrote:


On Wednesday, March 27, 2013 1:17:29 AM UTC+5:30, Karan Pratap Singh wrote:



On Tue, Mar 26, 2013 at 4:27 PM, Deepak Tak <deepak...@gmail.com> wrote:
hello everyone i have a problem with my code blocks
i want to include  and graphics.h lib in codeblocks and tried many sites but solution given is not working please help
(i tryed cp these files in include and libbgi.a into lib folder
 then copy this "-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32" to linker )
when i compile program it open graphics.h and says  for #include<sstream> there is not such directory
please help me out.......


Dude! At least google stuff before asking here :P

You are trying to include graphics.h ? which is a Turbo C specific file and has nothing to do with the standard C/C++ libraries! In short it is not compatible with the compiler running inside Codeblocks :P

So you can use SDL instead or Allegro etc.

+1 :) SDL is a really good library to start with!  

I recommend SDL for simple 2D graphics! :) Here are some GREAT SDL tutorials, http://www.lazyfoo.net/SDL_tutorials/


--
regards,
Karan Pratap Singh

thanks sir .....badola sir told me about sdl .......i think that to learn graphic i have to learn both (graphic,sdl ).......so i tried to include graphic library.......
thanks again

regard
deepak tak

--
Sarthak 
Reply all
Reply to author
Forward
0 new messages