Re: errors - warnings

> Hi,
> I run a "Progress bar" example program from "Eric Harlow"'s book and i get 
> all kind of
> warnings and errors like "warning : return type defaults to int". I use the 

That warning just means you haven't supplied a return type in the
function signature, e.g.

main(int argc, char **argv)

instead of

int main(int argc, char **argv)

The warnings can probably safely be ignored, but the functions
should have their return type.  If they dont return anything
they should have a return type of "void".


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]