linking error :undefined reference to a function



HI, ALL
Iam getting a linking error saying "undefined reference to a
function(say fun() ), these are what I've already done :
-- declared fun() as "extern"
-- included the header in all files calling fun()
-- included the header path in the respective "makefiles" calling
the
fun()/including the header
file
still Iam getting " ld returned 1 exit status "
Could any one please suggest me where would have I went wrong ??
thnx in advance.

.



Relevant Pages

  • undefined reference to a function
    ... Iam getting a linking error saying "undefined reference to a ... function(say fun()), these are what I've already done: ... -- included the header in all files calling fun ... still Iam getting " ld returned 1 exit status " ...
    (comp.lang.c)
  • linking error: undefined reference to a function
    ... Iam getting a linking error saying "undefined reference to a ... function(say fun()), these are what I've already done: ... -- included the header in all files calling fun ... still Iam getting " ld returned 1 exit status " ...
    (comp.os.linux.development.system)
  • Re: undefined reference to a function
    ... function(say fun()), these are what I've already done: ... Actually off-topic, since implementation-dependant, but: ... -- included the header in all files calling fun ... still Iam getting " ld returned 1 exit status " ...
    (comp.lang.c)
  • Re: linking error: undefined reference to a function
    ... Iam getting a linking error saying "undefined reference to a ... function(say fun()), these are what I've already done: ... -- included the header in all files calling fun ... still Iam getting " ld returned 1 exit status " ...
    (comp.os.linux.development.system)
  • Re: company is blocking port 6667
    ... Sycho wrote: ... 14:41:23 -0400 thought that it would be fun to share with the rest of ... the class this little ditty.. ... of a post that belongs in the HEADER area, ...
    (alt.2600)