Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > What does this warning mean

Reply
Thread Tools

What does this warning mean

 
 
ranjeet.gupta@gmail.com
Guest
Posts: n/a
 
      08-22-2005

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

What the above warning exactly mean ?

 
Reply With Quote
 
 
 
 
Jack Klein
Guest
Posts: n/a
 
      08-22-2005
On 21 Aug 2005 22:27:35 -0700, 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
 
Reply With Quote
 
 
 
 
manoj1978@gmail.com
Guest
Posts: n/a
 
      08-22-2005
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.

 
Reply With Quote
 
Michael Mair
Guest
Posts: n/a
 
      08-22-2005
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.
 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      08-22-2005
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) kst- <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.
 
Reply With Quote
 
ranjeet.gupta@gmail.com
Guest
Posts: n/a
 
      08-22-2005

Jack Klein wrote:
> On 21 Aug 2005 22:27:35 -0700, 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


 
Reply With Quote
 
Netocrat
Guest
Posts: n/a
 
      08-22-2005
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
 
Reply With Quote
 
Default User
Guest
Posts: n/a
 
      08-22-2005
Netocrat wrote:

> 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
 
Reply With Quote
 
Jack Klein
Guest
Posts: n/a
 
      08-23-2005
On Mon, 22 Aug 2005 21:23:46 +1000, Netocrat <>
wrote in comp.lang.c:

> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does FullText warning mean any update to text field will not be reflected? John Kotuby ASP .Net 2 04-19-2008 02:24 PM
what does this warning mean ? Heinrich Pumpernickel C Programming 106 10-14-2007 11:03 PM
XST Warning 790: What does it mean? agatha VHDL 13 05-24-2006 09:33 AM
Re: What does this Norton Security warning mean? Gordon NZ Computing 8 09-18-2003 05:08 AM
Re: What does this Norton Security warning mean? Chris Wilkinson NZ Computing 4 09-15-2003 12:42 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57