noseka1 / linuxband

GUI front-end for MMA (Musical MIDI Accompaniment)
linuxband.org
GNU General Public License v2.0
26 stars 15 forks source link

SOLVED: implicit declaration of function ‘isdigit’ #12

Closed simbulu closed 8 years ago

simbulu commented 8 years ago

During 'make' I get a warning that isdigit is undefined

src/main/c/midi.c: In function ‘decode_linenum’:
src/main/c/midi.c:64:7: warning: implicit declaration of function ‘isdigit’ [-Wimplicit-function-declaration]
   if (isdigit(*s)) {

This is fixed by including ctype.h like this patch shows:

diff -ur src.000/main/c/midi.c src/main/c/midi.c
--- src.000/main/c/midi.c   2016-01-09 17:30:39.715954082 +0000
+++ src/main/c/midi.c   2016-01-09 17:34:44.189108071 +0000
@@ -32,6 +32,7 @@
 #include "config.h"
 #include "smf.h"
 #include "midi.h"
+#include <ctype.h>

Ubuntostudio15.10 MMA from http://www.mellowood.ca/mma/mma_15.12_all.deb, Installed the needed dependencies libjack-jackd2-dev libsmf-dev python-gtk2 python-gtksourceview2 Installed linuxband from source. Now Linuxband plays on this box, using Qsynth (MIDI driver: jack) with linuxbandplayer routed to qsynth and qsynth to the system output

simbulu commented 8 years ago

The '#include ' line has been included in source. Thanks and closing.