473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

What does this warning mean


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

What the above warning exactly mean ?

Nov 15 '05 #1
8 1783
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

98
by: tjb | last post by:
I often see code like this: /// <summary> /// Removes a node. /// </summary> /// <param name="node">The node to remove.</param> public void RemoveNode(Node node) { <...> }
92
by: Heinrich Pumpernickel | last post by:
what does this warning mean ? #include <stdio.h> int main() { long l = 100; printf("l is %li\n", l * 10L);
65
by: Aditya | last post by:
Hi I am using a line of as char recvedValues = {'\0'}; in my code. I get a warning as near initialization for recvedValues. I am using gcc 3.4 Can anybody please explain the meaning. Thanks...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.