what is linkage error when it occurs in c program
Answers were Sorted based on User's Feedback
Answer / karthik
linkage error occurs when the library files included in
program are not present in default directory you added while
installing compiler.. set environment settings and change
directory.... you will not get linkage errors..
Is This Answer Correct ? | 14 Yes | 1 No |
Answer / naresh
main()
{
extern int iExtern;
iExtern = 20;
printf(ā%dā,iExtern);
}
Why do we get linkage error for the above code
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / rajesh
Linkage error occurs when the linker fails to resolve all
the symbols during the linking process. This can happen if
the linker is not able to find any definition for an extern
declaration in one .C file by the time of linking.
Is This Answer Correct ? | 6 Yes | 2 No |
Describe the header file and its usage in c programming?
What are the 5 data types?
Calculate 1*2*3*____*n using recursive function??
Explain what are multibyte characters?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
how to find your architecture is LittleEndian or BigEndian?
What is a double c?
Can stdout be forced to print somewhere other than the screen?
What is a structure in c language. how to initialise a structure in c?
what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }
WAP – represent a char in binary format
why do we use pointer instead directly acessing the data?