You are here:

C/ERROR IN calculation of cpu utilization using c

Advertisement


Question
thanks for your reply. i compiled it in visual c++. but in running this program there are 2 linking errors. they are
Linking...
cpu.obj : error LNK2001: unresolved external symbol _clrscr
Debug/cpu.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

cpu.exe - 2 error(s), 0 warning(s)

you please resolve this issue

Answer
Nothing to worry the problem is too simple !

I written that program in Turbo C++ But im sure you are using VC++ 6.0  , VC++ didn't support the function clrscr() ,
to avoid the error remove the clrscr() and getch() ( IF PRESENT ) in your code , then re-compile !

Your problem will be solved.

Thank You!  

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise


I'm sure that I can solve any doubts in Turbo C ,Graphics Programing ,Mouse, Hardware Programming ,File System ,Interrupts, BIOS handling , TSR Programming , General Concepts in C Language, handling inline Assembly statements

Experience

Research over 6+ Years

Organizations
CG-VAK Softwares and Exports Limited

Education/Credentials
Masters in Computer Applications

©2012 About.com, a part of The New York Times Company. All rights reserved.