Hi Friendzz,
I am facing problem with my C++ Progams. Whenever I am Compiling the program it is giving error "Undefined symbol cout" %26amp; "undefined symbol cin".
Eventhough I am including header files i.e. stdio.h %26amp; conio.h.
Please let me know the reason of this ..
Is there any setting required .
Revert me back.
Regards,
Neha.
C++ Problem...?
You have to write following
#include%26lt;iostream.h%26gt;
at the start of program
if you include that go to Options Menu in TC++ IDE
and click of Directories, now
change your lib path to
d:\tc\bin or
e:\tc\bin etc according to your installation directory. This problem is occured due to the default path of Lib is
C:\TC\BIN
if you install it other than C:\ drive chage it accordingly
Answer me if it works
Reply:this could have several reasons; you don't post code and don't mention which compiler you use, so it's difficult for us to give hints.
stdio.h and conio.h don't have the symbol cin and cout; for this you need to include either %26lt;iostream%26gt; or (on older systems) %26lt;iostream.h%26gt;.
if you include %26lt;iostream%26gt;, you also have to import the namespace of these symbols:
#include %26lt;iostream%26gt;
using namespace std;
Reply:maybe you need to include stdlib.h as well?
Reply:can i see you code thre could be a small error that you could see
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment