Thread: include <graphics.h>

  1. #1
    Registered User King Bob's Avatar
    Join Date
    Apr 2005
    Posts
    4

    include <graphics.h>

    uh yeah, well whenever I try to use this I get:

    "unknown file or directory 'include <graphics.h>' "

    what is wrong with this? Is it even a LIB ( or whatever they are called, I am a n00b )

    and if it doesn't exist, what is the graphics LIB/whatever they are called.

    I got this from the TC source under the source code link of the site.

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    I think graphics.h is a DOS lib..ie you need a DOS compiler.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    graphics.h is not a standard library
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    You are correct, i was thinking of graph.h.. sorry.

  5. #5
    Registered User King Bob's Avatar
    Join Date
    Apr 2005
    Posts
    4
    If graphics.h is a DOS LIB is there a similar one for Windows/other compilers? And what is it?

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    windows.h is the Win32 API, and GTK is the graphics library most commonly used for Windows APPS. You can also get other graphics API like SDL, OpenGL, etc...

    graph.h is also not a standard library. Borland tends to user lots of non-standard stuff, so I'd be wary of relying on it too much as you're learning. Dev-C++ is another choice you might consider.

  7. #7
    Registered User King Bob's Avatar
    Join Date
    Apr 2005
    Posts
    4
    I am using Dev C++ so how would I call the LIB, or do I need to download a file first? If so where can I get it?

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Well it's not standard, so you'd have to contact Borland and find out. There are probably like a million graphics.h's out there.

  9. #9
    Registered User King Bob's Avatar
    Join Date
    Apr 2005
    Posts
    4
    But I'm not using Borland, I'm using Dev C++

  10. #10
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    the point is it's a library you don't have and you'd need to find and retrieve it to be able to compile the program correctly. either that or find another library that can replace the one you're using. the best way for that is a google search.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  11. #11
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    But I'm not using Borland, I'm using Dev C++
    You're using Borland's source code, so you need their library.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use this part of dirent.h
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 01-31-2009, 08:51 AM
  2. Weird, cards not outputting correctly
    By Shamino in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2007, 03:26 PM
  3. #include <graphics.h>
    By Z Man in forum C++ Programming
    Replies: 1
    Last Post: 04-15-2004, 06:34 AM
  4. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM
  5. #includes don't seem to be working
    By Inquirer in forum C++ Programming
    Replies: 12
    Last Post: 08-05-2002, 05:38 PM