-
April 16th, 2007, 11:24 PM
#1
LinkerError- unresolved external symbol
Hi,
When i tried to call a function, i received a linker error Unresolved external symbol.
Example:
sample.h
void add(int x, int y) ;
void sub(int a, int y);
.
.
.
sample.c
.
.
.
c = add(a,b);
d = sub(a,b);
.
.
.
Note:
Like this i used to develop my application, i included some 10 to 20 functions, and i dont have any problem with most of the function call except for only one function i have error ( for example in my above snip the add(a,b) function works fine but sub(a,b) shows linker error).
I also checked, this two functions were defined or not. I found the definition was provided for all the functions. Please help me.
Thanks
V.Raja
Last edited by RajaKavi; April 17th, 2007 at 12:02 AM.
-
April 16th, 2007, 11:35 PM
#2
Re: LinkerError- unresolved external symbol
Submit or attach your full code.
-
April 17th, 2007, 02:02 AM
#3
Re: LinkerError- unresolved external symbol
Hi ,
Judging by what u have written , i assume that there is no body for sub function. In the .h file , u have given only prototypes.
To get the correct answer , pls. post the code .
Praseed Pai
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|