Question:
errors while executing prg in c++?
SAHANA P
2008-10-12 23:12:52 UTC
no errors during compilation but these are the errors during execution.linker error:undefined symbol _outtextxy in module pt.cpp
linker error:undefined symbol _settetxtstyle in module pt.cpp
linker error:undefined symbol _grapherrormsg in module pt.cpp
linker error:undefined symbol _graphresult in module pt.cpp
linker error:undefined symbol _initgraph in module pt.cpp

plz help..
Three answers:
Kokila S
2008-10-12 23:25:02 UTC
hello friend,



While you using function like grapherrormsg, settetxtstyle, grapherrormsg (whether it is user defined or library) U should include the proto type or header file.



When these errors come means, while executing files,the compiler links all the function modules.
jplatt39
2008-10-13 06:47:58 UTC
Sounds like you are using the Borland graphics interface. I hope you have a documented copy of Turbo C++ or Borland C++ or whatever you are using. I switched to Linux years ago and so wouldn't be using it any more, but I do seem to remember that when you run it (and presumably compile it you need relevent bgi files in either the #include directory or the program's home directory.



Anyhow, it's been years so if you don't have documentation go get some.. As in google your compiler version.
Shaddy
2008-10-13 06:32:49 UTC
You are not getting any compiler error because you have included the proper .h header file but you might have missed to include the .lib file in the include path.



The .h files do not have the implementation so you are getting this type of linker error. Depending upon platform you are using there are ways to include library files.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...