decltype(main)
is an alias for the type int(int, char **)
. You have declared a function hi
with this type but did not define it.
To get rid of the undefined reference
error, just define the function:
int hi( int, char ** ) {
return 0;
}
The messages that appear before true
are not output from your program but from the compiler.