By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

How to rectify "Linker Error Unable to open "TV LIB" File in C program in Turbo C

P: 1
#include<stdio.h>

int n = 5;
float list[] = {3, -2, 12, 4.4, 3.5};

main()

{
int count;
float avg, d, sum = 0;

/* calculate and display the average*/

for(count = 0; count < n; ++count)

sum += list[count];
avg = sum/n;
printf("\n The average is %5.2f\n\n" , avg);

/* calculate and display the deviations about the average*/

for (count = 0; count <n; ++count)
{

d = list[count] - avg;
printf("i = %d x = %5.2f d = %5.2f\n", count + 1, list[count], d);
}
}
Aug 1 '17 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
In options->linker->libraries what is selected?

It should be Standard Run Time.
Aug 1 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Browse more C / C++ Questions on Bytes