Skip to content

Instantly share code, notes, and snippets.

@Cheezmeister
Created December 7, 2014 03:57
Show Gist options
  • Save Cheezmeister/101211e406b39549dec6 to your computer and use it in GitHub Desktop.
Save Cheezmeister/101211e406b39549dec6 to your computer and use it in GitHub Desktop.
comets.c: In function ‘comets_game’:
comets.c:358:4: warning: implicit declaration of function ‘T4K_Tts_say’ [-Wimplicit-function-declaration]
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,_("Game paused. Press escape or p to continue"));
^
comets.c:358:16: error: ‘DEFAULT_VALUE’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,_("Game paused. Press escape or p to continue"));
^
comets.c:358:16: note: each undeclared identifier is reported only once for each function it appears in
comets.c:358:44: error: ‘INTERRUPT’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,_("Game paused. Press escape or p to continue"));
^
comets.c: In function ‘comets_handle_help’:
comets.c:717:14: error: ‘DEFAULT_VALUE’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,APPEND,_("Welcome to TuxMath!"));
^
comets.c:717:42: error: ‘APPEND’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,APPEND,_("Welcome to TuxMath!"));
^
comets.c: In function ‘check_extra_life’:
comets.c:1870:21: error: ‘DEFAULT_VALUE’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,APPEND,_("fixing ingloo damage! ...."));
^
comets.c:1870:49: error: ‘APPEND’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,APPEND,_("fixing ingloo damage! ...."));
^
comets.c: In function ‘comets_handle_game_over’:
comets.c:2222:16: error: ‘DEFAULT_VALUE’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,_("Mission Accomplished! You won!"));
^
comets.c:2222:44: error: ‘INTERRUPT’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,_("Mission Accomplished! You won!"));
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
comets.c: In function ‘convert_formula_to_sentence’:
comets.c:4000:22: warning: passing argument 2 of ‘dcgettext’ from incompatible pointer type
wcscat(sentence,_(L"plus "));
^
comets.c:4000:20: note: in expansion of macro ‘_’
wcscat(sentence,_(L"plus "));
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
/usr/include/libintl.h:51:14: note: expected ‘const char *’ but argument is of type ‘int *’
extern char *dcgettext (const char *__domainname,
^
comets.c:4000:20: warning: passing argument 2 of ‘wcscat’ from incompatible pointer type
wcscat(sentence,_(L"plus "));
^
In file included from globals.h:48:0,
from tuxmath.h:36,
from comets.c:30:
/usr/include/wchar.h:155:17: note: expected ‘const wchar_t * __restrict__’ but argument is of type ‘char *’
extern wchar_t *wcscat (wchar_t *__restrict __dest,
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
comets.c:4002:22: warning: passing argument 2 of ‘dcgettext’ from incompatible pointer type
wcscat(sentence,_(L"minus "));
^
comets.c:4002:20: note: in expansion of macro ‘_’
wcscat(sentence,_(L"minus "));
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
/usr/include/libintl.h:51:14: note: expected ‘const char *’ but argument is of type ‘int *’
extern char *dcgettext (const char *__domainname,
^
comets.c:4002:20: warning: passing argument 2 of ‘wcscat’ from incompatible pointer type
wcscat(sentence,_(L"minus "));
^
In file included from globals.h:48:0,
from tuxmath.h:36,
from comets.c:30:
/usr/include/wchar.h:155:17: note: expected ‘const wchar_t * __restrict__’ but argument is of type ‘char *’
extern wchar_t *wcscat (wchar_t *__restrict __dest,
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
comets.c:4004:22: warning: passing argument 2 of ‘dcgettext’ from incompatible pointer type
wcscat(sentence,_(L"divided by "));
^
comets.c:4004:20: note: in expansion of macro ‘_’
wcscat(sentence,_(L"divided by "));
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
/usr/include/libintl.h:51:14: note: expected ‘const char *’ but argument is of type ‘int *’
extern char *dcgettext (const char *__domainname,
^
comets.c:4004:20: warning: passing argument 2 of ‘wcscat’ from incompatible pointer type
wcscat(sentence,_(L"divided by "));
^
In file included from globals.h:48:0,
from tuxmath.h:36,
from comets.c:30:
/usr/include/wchar.h:155:17: note: expected ‘const wchar_t * __restrict__’ but argument is of type ‘char *’
extern wchar_t *wcscat (wchar_t *__restrict __dest,
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
comets.c:4006:22: warning: passing argument 2 of ‘dcgettext’ from incompatible pointer type
wcscat(sentence,_(L"Times "));
^
comets.c:4006:20: note: in expansion of macro ‘_’
wcscat(sentence,_(L"Times "));
^
In file included from gettext.h:25:0,
from globals.h:36,
from tuxmath.h:36,
from comets.c:30:
/usr/include/libintl.h:51:14: note: expected ‘const char *’ but argument is of type ‘int *’
extern char *dcgettext (const char *__domainname,
^
comets.c:4006:20: warning: passing argument 2 of ‘wcscat’ from incompatible pointer type
wcscat(sentence,_(L"Times "));
^
In file included from globals.h:48:0,
from tuxmath.h:36,
from comets.c:30:
/usr/include/wchar.h:155:17: note: expected ‘const wchar_t * __restrict__’ but argument is of type ‘char *’
extern wchar_t *wcscat (wchar_t *__restrict __dest,
^
comets.c:4014:2: warning: function returns address of local variable [-Wreturn-local-addr]
return sentence;
^
comets.c: In function ‘tts_announcer’:
comets.c:4030:2: warning: implicit declaration of function ‘T4K_Tts_wait’ [-Wimplicit-function-declaration]
T4K_Tts_wait();
^
comets.c:4040:16: error: ‘DEFAULT_VALUE’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,"Score %d!",score);
^
comets.c:4040:44: error: ‘INTERRUPT’ undeclared (first use in this function)
T4K_Tts_say(DEFAULT_VALUE,DEFAULT_VALUE,INTERRUPT,"Score %d!",score);
^
comets.c:4025:6: warning: unused variable ‘pitch’ [-Wunused-variable]
int pitch;
^
comets.c: In function ‘stop_tts_announcer_thread’:
comets.c:4134:2: warning: implicit declaration of function ‘T4K_Tts_stop’ [-Wimplicit-function-declaration]
T4K_Tts_stop();
^
make[2]: *** [comets.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment