English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have errors in the following programme after compiling.
#include
#include
int main()
{ clrscr();
char ch='A';
int num = ch;
cout<<"The ASCII code for"< cout<<"Adding 1 to the character code :\n";
ch = ch+1'
num=ch;
cout<<"The ASCII code for"< return 0;
}
when i runs this programme the error comes-LINKER ERROR:UNABLE TO OPEN FILE "TCCLASSLIB".

2007-08-01 20:21:55 · 5 answers · asked by varun s 1 in Computers & Internet Programming & Design

5 answers

Computer Tutorials, Interview Question And Answer
http://freshbloger.com/

2007-08-02 00:36:54 · answer #1 · answered by aerokan a 3 · 0 1

Hey, the first game I ever wrote was in Turbo C++ 3.0! Of course, that was in '97....

Did you copy & 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

2007-08-02 04:26:48 · answer #2 · answered by Rez 1 · 0 0

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?

2007-08-02 03:25:58 · answer #3 · answered by Michael M 6 · 0 0

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...

2007-08-02 05:19:05 · answer #4 · answered by kiru 2 · 0 0

In compiler settings, find path definition and add path to the required library.

2007-08-02 06:08:16 · answer #5 · answered by alakit013 5 · 1 0

fedest.com, questions and answers