Here's the error:

g++ -DHAVE_CONFIG_H -I. -I..     -rdynamic   -g -MT NamedObject.o -MD -MP
-MF .deps/NamedObject.Tpo -c -o NamedObject.o NamedObject.cc
clang: warning: argument unused during compilation: '-rdynamic'
Input.cc:67:39: warning: control reaches end of non-void function
[-Wreturn-type]
static char * readline(const char *) {}
                                      ^
Input.cc:69:28: warning: control reaches end of non-void function
[-Wreturn-type]
int rl_bind_key(int, int) {}
                           ^
Input.cc:70:38: warning: control reaches end of non-void function
[-Wreturn-type]
int rl_parse_and_bind(const char *) {}
                                     ^
Input.cc:117:25: error: assigning to 'void (*)()' from incompatible type
'int ()':
      different return type ('void' vs 'int')
        rl_startup_hook = Input::init_readline_control_C;
                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input.cc:386:4: error: no matching function for call to 'rl_bind_key'
   rl_bind_key(CTRL('C'), &readline_control_C);
   ^~~~~~~~~~~
Input.cc:69:5: note: candidate function not viable: no known conversion from
      'int (*)(int, int)' to 'int' for 2nd argument
int rl_bind_key(int, int) {}
    ^
Input.cc:399:4: error: use of undeclared identifier 'rl_crlf'
   rl_crlf();
   ^
Input.cc:400:22: error: use of undeclared identifier 'rl_end'
   rl_delete_text(0, rl_end);
                     ^
Input.cc:401:4: error: use of undeclared identifier 'rl_done'
   rl_done = 1;
   ^
3 warnings and 5 errors generated.

Regards,
Elias

Reply via email to