Thread: C++ graphics on g++ compiler

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    4

    C++ graphics on g++ compiler

    Hi,
    The g++ compiler gives the error "No such file or directory" for "include<graphics.h>". I haven't programmed using the g++ compiler before. Please tell me how to write C++ graphics programs for the g++ compiler. Also, while using turboc we specify

    initgraph(&gd, &gm, "c:\\turboc3\\bgi " );

    What is the g++ equivalent of this?

    thanks
    raj

  2. #2
    FOX
    Join Date
    May 2005
    Posts
    188
    It's not part of any standard, and GNU GCC does not provide it. It's some old legacy header used by the Borland compilers for creating DOS programs.

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    4

    C++ graphics on g++ compiler

    Thanks, Is there any way I can plot a pixel in case I am using g++ compiler?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    There are many ports of gcc to windows, which one are you using?

    If it's dev-c++, then simply get the "libsdl" package, then visit www.libsdl.org for FAQs and tutorials.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginning Game Programming Type Books
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 09-13-2006, 04:15 PM
  2. lcc win32 compiler download problems
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-01-2004, 07:39 PM
  3. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 01:52 PM
  4. What's the best compiler for graphics primitives?
    By monguin61 in forum Game Programming
    Replies: 4
    Last Post: 06-03-2002, 12:48 AM