Author
anonymous
almost 7 years ago
Language
Compiler
Options
Author
anonymous
almost 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:8:33: error: cannot convert 'N::sockaddr*' to 'sockaddr*' in initialization
struct sockaddr *x = N::foo();
^
prog.cc:2:12: note: class type 'N::sockaddr' is incomplete
struct sockaddr *foo();
^~~~~~~~
prog.cc:8:22: warning: unused variable 'x' [-Wunused-variable]
struct sockaddr *x = N::foo();
^
Exit Code:
1