Making all in src Making all in . make[2]: Nothing to be done for `all-am'. Making all in gdbstub make[2]: Nothing to be done for `all'. Making all in gtk make[2]: Nothing to be done for `all'. Making all in cli if gcc -DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"0.7.0\" -DPACKAGE_STRING=\"desmume\ 0.7.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"0.7.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBZ=1 -DGLADEUI_UNINSTALLED_DIR=\"/Developer/nds/desmume-0.6.0/src/gtk-glade/glade/\" -I. -I. -I/sw/include/SDL -D_THREAD_SAFE -g -O2 -MT desmume_cli-main.o -MD -MP -MF ".deps/desmume_cli-main.Tpo" -c -o desmume_cli-main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/desmume_cli-main.Tpo" ".deps/desmume_cli-main.Po"; else rm -f ".deps/desmume_cli-main.Tpo"; exit 1; fi main.c: In function 'createThread_gdb': main.c:194: error: 'SDL_Thread' undeclared (first use in this function) main.c:194: error: (Each undeclared identifier is reported only once main.c:194: error: for each function it appears in.) main.c:194: error: 'new_thread' undeclared (first use in this function) main.c: In function 'SDL_main': main.c:315: warning: passing argument 1 of 'set_kb_keys' discards qualifiers from pointer target type make[2]: *** [desmume_cli-main.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1