i have errors in the following programme after compiling.
#include%26lt;iostream.h%26gt;
#include%26lt;conio.h%26gt;
int main()
{ clrscr();
char ch='A';
int num = ch;
cout%26lt;%26lt;"The ASCII code for"%26lt;%26lt;ch%26lt;%26lt;"is"%26lt;%26lt;num%26lt;%26lt;"\n";
cout%26lt;%26lt;"Adding 1 to the character code :\n";
ch = ch+1'
num=ch;
cout%26lt;%26lt;"The ASCII code for"%26lt;%26lt;ch%26lt;%26lt;"is"%26lt;%26lt;num%26lt;%26lt;"\n";
return 0;
}
when i runs this programme the error comes-LINKER ERROR:UNABLE TO OPEN FILE "TCCLASSLIB".
Error in turbo c++ programming.?
Computer Tutorials, Interview Question And Answer
http://freshbloger.com/
Reply:I can't believe people are still using Turbo C++.
I think you are getting that error because you are missing some library files that the compiler uses by default. Can you get any program to work?
Reply:In compiler settings, find path definition and add path to the required library.
Reply:Ensure that there is a file called TCCLASSLIB among the files in Turbo C++ Package.....If not get the software again installed on ur PC...
Reply:Hey, the first game I ever wrote was in Turbo C++ 3.0! Of course, that was in '97....
Did you copy %26amp; paste this code? There's a syntax error:
ch = ch+1'
It should probably be:
ch = ch+1;
I've seen weird linker errors come up if it can't compile, so make sure the compile stage completes successfully. Other than that, make sure that you're correctly including the library.
I agree with Machael's statement about the antiquated Turbo C++, however. You may want to look into using another compiler. There are several free ones out there, such as Bloodshed (which uses gcc) or Visual Studio 2005 Express Edition.
-Rez
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment