Branches
Comments
[»]
This does not compiles
by David Collantes - May 16th 2001 16:01:08
This is what I get:
g++ -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1
-DRETSIGTYPE=void -I. -I. -c Main.cc
Main.cc: In function `int init ()':
Main.cc:41: warning: no return statement in function returning
non-void
g++ -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1
-DRETSIGTYPE=void -I. -I. -c Frame.cc
Frame.cc: In method `int Frame::setVariables ()':
Frame.cc:59: warning: no return statement in function returning
non-void
Frame.cc: At top level:
Frame.cc:62: ISO C++ forbids declaration of `reSize' with no type
Frame.cc:62: new declaration `int Frame::reSize (unsigned int)'
Frame.h:35: ambiguates old declaration `void Frame::reSize (unsigned
int)'
Frame.cc: In method `int Frame::reSize (unsigned int)':
Frame.cc:64: warning: no return statement in function returning
non-void
Frame.cc: At top level:
Frame.cc:140: ISO C++ forbids declaration of `read' with no type
Frame.cc:140: new declaration `int Frame::read ()'
Frame.h:42: ambiguates old declaration `void Frame::read ()'
Frame.cc: In method `int Frame::read ()':
Frame.cc:203: warning: no return statement in function returning
non-void
Frame.cc: At top level:
Frame.cc:250: ISO C++ forbids declaration of `print' with no type
Frame.cc:250: new declaration `int Frame::print ()'
Frame.h:43: ambiguates old declaration `void Frame::print ()'
Frame.cc: In method `int Frame::print ()':
Frame.cc:292: no match for `fpos_t & = long int'
/usr/include/_G_config.h:30: candidates are: _G_fpos_t
&_G_fpos_t::operator= (const _G_fpos_t &)
Frame.cc:293: warning: no return statement in function returning
non-void
make: *** [Frame.o] Error 1
What gives?
[reply]
[top]
[»]
Re: This does not compiles
by Andy MacKenzie - May 16th 2001 16:15:53
> This is what I get:
>
> g++ -DHAVE_LIBNCURSES=1
> -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1
> -DRETSIGTYPE=void -I. -I. -c
> Main.cc
> Main.cc: In function `int init ()':
> Main.cc:41: warning: no return
> statement in function returning
> non-void
> g++ -DHAVE_LIBNCURSES=1
> -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1
> -DRETSIGTYPE=void -I. -I. -c
> Frame.cc
> Frame.cc: In method `int
> Frame::setVariables ()':
> Frame.cc:59: warning: no return
> statement in function returning
> What gives?
My compiler never gave those errors. Much of it stems from functions
being declared as 'void' in the header, but not in the source. Also
functions declared to return 'int' not returning values...
I will make some fixes (this is the initial release, and I haven't
compiled on many different machines) based on feedback and get a new
release out. (Or a compiled version on the site).
Thanks for the feedback!
>
[reply]
[top]
[»]
Cool app tho...
by David Collantes - May 16th 2001 16:50:00
I got the compiled package -I prefer to compile it myself, of course,
but...- and it works nicely. Pretty useful program. Thanks!
[reply]
[top]
[»]
Nice utility
by Vander Nunes - Jun 27th 2001 12:19:28
I am evaluating this utility, and I like it.
Suggestion: an option to specify the configuration file in the command
line.
Nice little app.
[reply]
[top]
|