Author Topic: warning  (Read 929 times)

thrushitha

  • Full Member
  • ***
  • Posts: 26
warning
« on: August 16, 2011, 02:31:13 am »
wat does it mean , if we get this type of warning


 'a'   undefined; assuming extern returning int

kathir

  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
Re: warning
« Reply #1 on: August 25, 2011, 07:44:31 am »
a is a function or a variable?

If you have following line, it is just a declaration. It needs to be defined with "int a;"
extern int a;

Alternatively if you have function with no return type, it would be treated as int like given below:

add(int a, int b); // watch no return type specified in this case.

Make sure you have proper return type or at least "void" to avoid this warning.,

wat does it mean , if we get this type of warning


 'a'   undefined; assuming extern returning int

 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1