Re: so what do these errors mean?


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]

Posted by Aaron on July 12, 2001 at 12:59:08:

In Reply to: so what do these errors mean? posted by kalpol on July 12, 2001 at 12:17:12:

Actually, that's just g++ being more mindful than vc++. It's telling you that you have a non-void function that is not returning a value.
make sure you have a return before your program/function terminates.

aaron
: g++ is so obscure sometimes...this runs fine in VC++

: set.h:223: instantiated from `set::AVLtree::addto(set::AVLtree::treenode *&, const foo &)'
: set.h:80: instantiated from `set::AVLtree::insert(const foo &)'
: set.h:27: instantiated from `set::add(const foo &)'
: test.c:37: instantiated from here
: set.h:180: warning: control reaches end of non-void function `set::AVLtree::verifyAVL(set::AVLtree::treenode *)'
: set.h: In method `enum set::AVLtree::ReturnStatus set::AVLtree::addto(set::AVLtree::treenode *&, const foo &)':
: set.h:80: instantiated from `set::AVLtree::insert(const foo &)'
: set.h:27: instantiated from `set::add(const foo &)'
: test.c:37: instantiated from here



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS328 Message Board ] [ FAQ ]