help!

why is it when i compile my program and run it stand alone (not on a TC directory) it gets an error:

BGI Error: Graphics not initialized (use 'initgraph');

please help!