What does "error: invalid function declaration" mean?
Posted
by Walter Nissen
on Stack Overflow
See other posts from Stack Overflow
or by Walter Nissen
Published on 2010-03-23T23:59:44Z
Indexed on
2010/03/24
0:03 UTC
Read the original article
Hit count: 307
With GCC 4.1.2, I get the error tmp.cpp:8: error: invalid function declaration
for the following code
namespace edit {
class A {
public:
void foo( );
};
}
void edit:A::foo( ) {
}
© Stack Overflow or respective owner