红联Linux门户
Linux帮助

Ncurses Compilation Error-error: expected ')' before 'int'

发布时间:2017-05-04 16:08:34来源:linux网站作者:CaspianSea
编ncurses 代码的时候,出错:
arm-linux-gnueabi-gcc -DHAVE_CONFIG_H -I../ncurses -I. -I/home/charles/code/build_systemd/_install/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -I. -I../include -I/home/charles/code/build_systemd/_install/include/ncurses -I/home/charles/code/build_systemd/_install/include  --param max-inline-insns-single=1200 -c ../ncurses/lib_gen.c -o ../objects/lib_gen.o
In file included from ../ncurses/curses.priv.h:283:0,
from ../ncurses/lib_gen.c:19:
_32053.c:835:15: error: expected ')' before 'int'
../include/curses.h:1594:56: note: in definition of macro 'mouse_trafo'
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
^
Makefile:785: recipe for target '../objects/lib_gen.o' failed
 
解决方法:
export CPPFLAGS="-P"
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30505.html