I'm trying to do some easy graphics but I'm not understanding this error I keep getting. First off, the program works fine in my old Borland C compiler (it came on a single disk in a textbook, a limited version 2.0 I think...) so I know the code is error free. I've installed Borland C++ 3.1 because the IDE is more _modern_ believe it or not! Here's the program, what little there is, and the errors follow...
void main( void )
graph_driver = VGA;
graph_mode = VGAHI;
initgraph( &graph_driver, &graph_mode,"c:\\borlandc\\bgi" );
Linker Error: Undefined symbol _initgraph in module ..
Linker Error: Undefined symbol _putpixel in module ..
Like I said it works fine in my very old compiler, its just in the C++ 3.1 compiler in which it fails. I copied the egavga.bgi file to the directory with the source code so I don't think that's the problem. I'm thinking maybe I haven't set up the compiler correctly (?) I don't know since this is the only real one I have. If anyone can tell me why its giving me undefined symbol errors and how I can fix them (in normal speak, I'm still learning the lingo) I've added a massive amount of points. Thanks in advance!