can not find graphics.h

D

Desi Haker

Hi there,

I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is
not standard C file. So, can any one help to find where can I get
this file on MSVC 7.1 or any equivalent file for it.

I really appreciate yoru help.

Thanks,
Desi...
 
M

Merrill & Michele

"Desi Haker"
Hi there,

I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is
not standard C file. So, can any one help to find where can I get
this file on MSVC 7.1 or any equivalent file for it.

I really appreciate yoru help.

You're off topic here. MPJ
 
E

Eric Sosman

Desi said:
Hi there,

I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is
not standard C file. So, can any one help to find where can I get
this file on MSVC 7.1 or any equivalent file for it.

This is Question 10.11 (or a close variant) in the
comp.lang.c Frequently Asked Questions (FAQ) list

http://www.eskimo.com/~scs/C-faq/top.html

.... which won't overjoy you. The best suggestion I can
offer is to try your question on a Microsoft newsgroup,
where other people may have encountered the same problem
before you.
 
F

Flash Gordon

On 30 Nov 2004 09:19:50 -0800
Hi there,

I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is
not standard C file. So, can any one help to find where can I get
this file on MSVC 7.1 or any equivalent file for it.

I really appreciate yoru help.

Here is one you can use:

/* graphics.h implementation for all systems without a graphics.h */
#error Required graphics library not available on this system
/* End of graphics.h */

Alternatively, read the documentation for the program to find out what
it requires, or ask the author(s) or maintainer(s). This group is for
discussing the C language, not working out what third party libraries
some random program off the net requires.
 
C

CBFalconer

Desi said:
I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is
not standard C file. So, can any one help to find where can I get
this file on MSVC 7.1 or any equivalent file for it.

Illustrating very nicely why this newsgroup limits itself to
standard C. There is no portable answer. Header files describe
access to other modules, so the first thing to do is to build the
appropriate module.
 
M

Mabden

Desi Haker said:
Hi there,

I am trying to compile free C code from internet using cl(MSVC 7.1).
This program use graphics.h header file. Unfortunatly this file is
not standard C file. So, can any one help to find where can I get
this file on MSVC 7.1 or any equivalent file for it.

In MSVC 8.0 there is a header file named GRAPH.H. It defines a few very
basic functions to get/set a pixel, draw a rectangle or an arc, etc. You
also need to add GRAPHICS.LIB to you compile (link) command, I imagine.
Perhaps that may work for you.

Try asking over in comp.os.msdos.programmer or something similar, and
try to tell them which functions need the header file (i.e. the ones
that give an error message saying they are "undefined").
 
F

Flash Gordon

In MSVC 8.0 there is a header file named GRAPH.H. It defines a few
very basic functions to get/set a pixel, draw a rectangle or an arc,
etc. You also need to add GRAPHICS.LIB to you compile (link) command,
I imagine. Perhaps that may work for you.

Unlikely to help because if that was the correct header and libray the
source would have included graph.h instead of graphics.h
Try asking over in comp.os.msdos.programmer or something similar, and
try to tell them which functions need the header file (i.e. the ones
that give an error message saying they are "undefined").

No, he needs to identify the *correct* library, and that is something
only those knowing the program he is trying to compile will know.
 
S

surendran.d

graphics.h meant for only TURBO C and its own graphics libraries,,, it
wont work where ever the user wants
 
F

Flash Gordon

On 2 Dec 2004 06:05:36 -0800
graphics.h meant for only TURBO C and its own graphics libraries,,, it
wont work where ever the user wants

Then why do I have grphics.h on at least one of my linux boxes?

Don't assume that your system is the only one that exists, redirect off
topic posts rather than trying to answer them (or ignore them), and
quote enough to provide contect for your reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,404
Latest member
PerryRutt

Latest Threads

Top