|
出错信息:
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mpegsound -I/usr/include/ncurses
-I../nmixer -I/usr/include -O2 -Wall -Wstrict-prototypes -W
-fno-strength-reduce -DMP3BLASTER_DOCDIR=\"/usr/share/mp3blaster\" -c
main.cc
main.cc:135:54: macro "gettext" passed 2 arguments, but takes just 1
main.cc:135: error: `char*gettext' redeclared as different kind of
symbol
/usr/include/libintl.h:40: error: previous declaration of `char*
gettext(const
char*)'
我查找了一下文件,发现只有这些文件中包括gettext的申明:
./getopt.c: # define _(msgid) gettext (msgid)
../main.cc:char *gettext(const char *label, short display_path=0);
./main.cc: name = gettext("Enter filename:", 1);
./main.cc: name = gettext("Enter filename", 1);
而在冲突的库文件libintl.h中gettext的定义:
/usr/include/libintl.h
/* Look up MSGID in the current default message catalog for the current
LC_MESSAGES locale. If not found, returns MSGID itself (the default
text). */
extern char *gettext (__const char *__msgid) __THROW;
自己尝试了,但是无法解决,恳请高手帮忙看看。 |
|