it says undefined symbol cout in function main().plz give me the solution.
I use BCC 5.5
I`m a beginer in "c" language.When i try to compile it says :unable to open include file"iostream" and ...
There is no iostream or cout in the "c" language.
Is your program in C++ instead?
If so, try giving it a different extension, like .cpp instead of .c
If that doesn't fix the problem you just need to change the include directory that BCC 5.5 searches.
Reply:iostream and cout are in the C++ standard library so make sure that you are using a C++ compiler and that your file has a .cpp, .cc, or .cxx extension so the compiler treats it as C++.
Good luck!
Reply:you have an option called window in your turboc editor.In it, select path and check whether that path is leading to your BCC 5.5 directory or not. it is the only problem
Reply:make sure the line where you include the file is correct. For instance, the file should be iostream.h, not just iostream. The compiler has a standard set of directories to look for includes, and I can't imagine one that would not include the normal ones in it's default path, but if you're sure the include statement is correct, then look at the documentation for your compiler, see where it searches, and then see why that file isn't there.
Reply:Either you have typo in the #include %26lt;iostream.h%26gt; line
Or your installation is bad (gotta reinstall there)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment