okey so i'm trying to create a circle in c++ when i inputted the program.. and compile it..there was no error but when i try to run it there was an error the errors states: "Linker error undefined symbol _restorecrtmode in module NONAME.CPP
Linker error undefined symbol _initgraph in module
NONAME.CPP
Linker error undefined symbol _circle in module NONAME.CPP
Linker error undefined symbol _closegraph in module NONAME.CPP
BELOW IS MY INPUTTED CODES:
#include%26lt;graphics.h%26gt;
#include%26lt;conio.h%26gt;
void main()
{
int gd=DETECT,gm;
initgraph(%26amp;gd,%26amp;gm,"c:/tc3/bgi");
circle(330,180,100);
getch();
closegraph();
restorecrtmode();
}
what is the meaning of that linker error?? how can i fixed this??
C++ help please..?
Compiling and linking are 2 different steps. You didn't tell the linker to include the library file (.lib) or object files (.obj) which contains the circle() and initgraph() functions.
If you're using Borland Turbo C++ 3.0 for DOS, then go into the Options | Linker | Libraries menu and check the 'Graphics Library' checkbox.
Reply:i compiled and run the program,i didn't get any linker error.i got the circle.
If you're using Borland Turbo C++ 3.0 , then go into the Options %26lt;Linker %26lt; Libraries menu and then check the "Graphics Library" checkbox.
all the best...............
marigold
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment