Hi, I tried to compile libtprl-0.1.0 and I got this error:
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -c console.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -Wall -c console.cpp -fPIC -DPIC -o .libs/console.o /usr/include/readline/rltypedefs.h:65: error: typedef 'rl_getc_func_t' is initialized (use __typeof__ instead) /usr/include/readline/rltypedefs.h:65: error: 'FILE' was not declared in this scope /usr/include/readline/rltypedefs.h:65: error: expected primary-expression before ')' token /usr/include/readline/readline.h:416: error: 'FILE' was not declared in this scope /usr/include/readline/readline.h:416: error: expected primary-expression before ')' token /usr/include/readline/readline.h:532: error: expected initializer before '*' token /usr/include/readline/readline.h:533: error: expected initializer before '*' token /usr/include/readline/readline.h:827: error: expected ';' before '*' token /usr/include/readline/readline.h:828: error: expected ';' before '*' token console.cpp: In member function 'char* tprl::Console::commandCompleter(const char*, int)': console.cpp:265: warning: control reaches end of non-void function console.cpp: At global scope: console.cpp:35: warning: 'char* tprl::command_generator(const char*, int)' defined but not used make[2]: *** [console.lo] Error 1 make[2]: Leaving directory `/home/jlp/Programming/parsek/libtprl/tprl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jlp/Programming/parsek/libtprl' make: *** [all-recursive-am] Error 2 To fix the problem I had to move includes #include <iostream> #include <iomanip> before the includes for readline. -- JLP's Blog - http://jlp.holodeck1.com/blog/ _______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
