TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MATTHEW DUHART
from: JERRY COFFIN
date: 1997-08-06 23:30:00
subject: Problem with initgraph

On (05 Aug 97) MATTHEW DUHART wrote to ALL...
 MD> Hi, I seem to be having !ymany many many errors with Turbo C++.  I
 MD> entered a program out of a book, checked it over many times, had other
 MD> people check it over, and compiled it.  I always get 1 warning and 5
 MD> errors.  The errors always have to do with stuff like initgraph,
 MD> setcolor, lineto, moveto, etc.
It sounds like you may not be linking in the graphics library.  From the
command line, you'd use:
tcc tendril.cpp graphic.lib
From the Turbo C++ IDE, you have to go through a couple levels of menus
to get to one telling it to link in the graphics library.
[ ... ]
 MD> void main()
 MD>    {
 MD>    int driver, mode;
 MD>    driver = VGA;
 MD>    mode = VGAHI;
 MD>    initgraph(&driver, &mode, "\\tc\\bgi");
This could be another source of a problem.  This has to contain the path
to the Turbo C++ BGI directory.  If you have Turbo C++ installed in a
different directory, or you run the program from a different disk,
you'll need to change this path to point the Turbo C++ BGI files.
    Later,
    Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.