Mail Archives: djgpp/1997/11/23/21:15:26
DidUReally wrote:
>
> Man I'm just so lost. I'm learning to program in C with djgpp. I'm trying to
> compile a source example that was written for the watcom c compiler and I'm
> having trouble figuring out how to convert the code.
> My compiler is asking for graph.h - which I don't have !?! What can I
> possibly do less than buying watcom's c/c++ compiler ($350).
Graphics are not defined as part of the C language. If Watcom includes
a graphics library as part of the distribution, it is non-portable.
Unless you have a wrapper file that translates the Watcom graphics
commands to some library DJGPP uses, then you will have to do the
translation by hand. If you don't know C, then that is a significant
problem.
Download a DJGPP-specific graphics package (I recommend Allegro for a
variety of reasons. The great documentation being a highpoint for
beginners and experts alike) and learn how to use it with DJGPP.
- Raw text -