468,740 Members | 1,950 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,740 developers. It's quick & easy.

What does this warning mean


warning C4013: 'localData' undefined; assuming extern returning int

What the above warning exactly mean ?

Nov 15 '05 #1
8 1579
On 21 Aug 2005 22:27:35 -0700, ra***********@gmail.com wrote in
comp.lang.c:

warning C4013: 'localData' undefined; assuming extern returning int

What the above warning exactly mean ?


This means that the compiler sees what it thinks is a function call,
but it does not have a prototype or declaration in scope. By the
rules of C before 1999, it must assume that there is a function by
that name that returns an int, taking arguments of the type you used
in the call after the default promotions.

In the C standard as of 1999, it is not legal to call a function
without a declaration in scope.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 15 '05 #2
ra***********@gmail.com wrote:
warning C4013: 'localData' undefined; assuming extern returning int

What the above warning exactly mean ?

you used the variable localData without declaring it first.
check your code.most possibly there is a typo in localData declaration.

Nov 15 '05 #3
ra***********@gmail.com wrote:
warning C4013: 'localData' undefined; assuming extern returning int

What the above warning exactly mean ?


<OT>That you were unable to press F1 on the selected warning
message.</OT>

Probably:
That the identifier localData has not been declared.
That it is used as if it was a function identifier.
That your compiler therefore assumes it was a function identifier.
That your compiler assumes that localData() has no prototype, returns
int and has external linkage.

Next time provide some context so that we can tell you with
certainty what is wrong.
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Nov 15 '05 #4
ra***********@gmail.com writes:
warning C4013: 'localData' undefined; assuming extern returning int

What the above warning exactly mean ?


It means that you forgot to show us the code that causes the warning.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #5

Jack Klein wrote:
On 21 Aug 2005 22:27:35 -0700, ra***********@gmail.com wrote in
comp.lang.c:

warning C4013: 'localData' undefined; assuming extern returning int

What the above warning exactly mean ?
This means that the compiler sees what it thinks is a function call,
but it does not have a prototype or declaration in scope. By the
rules of C before 1999, it must assume that there is a function by
that name that returns an int, taking arguments of the type you used
in the call after the default promotions.

In the C standard as of 1999, it is not legal to call a function
without a declaration in scope.


Thanks Jack, I was able to remove my warning, While going through
your mail.

Ranjeet Gupta

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html


Nov 15 '05 #6
ra***********@gmail.com wrote:
Thanks Jack, I was able to remove my warning, While going through
your mail. ^^^^^^^^^^^^^^^^^^^

^^^^^^^^^

I hope for Jack's case that this isn't what you meant to say (but if it
is, at least it's on the public record!). ;)

--
http://members.dodo.com.au/~netocrat
Nov 15 '05 #7
Netocrat wrote:
ra***********@gmail.com wrote:
Thanks Jack, I was able to remove my warning, While going through
your mail. ^^^^^^^^^^^^^^^^^^^

^^^^^^^^^

I hope for Jack's case that this isn't what you meant to say (but if
it is, at least it's on the public record!). ;)

Dibbs on the Social Security check!


Brian
Nov 15 '05 #8
On Mon, 22 Aug 2005 21:23:46 +1000, Netocrat <ne******@dodo.com.au>
wrote in comp.lang.c:
ra***********@gmail.com wrote:
Thanks Jack, I was able to remove my warning, While going through
your mail. ^^^^^^^^^^^^^^^^^^^

^^^^^^^^^

I hope for Jack's case that this isn't what you meant to say (but if it
is, at least it's on the public record!). ;)


With my wife's spending habits[1], I'm one of those people who would
be ahead financially if my identity was stolen!

[1]Can you tell my wife doesn't read usenet?

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 15 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.