cmusphinx / sphinxtrain

Acoustic model trainer for CMU Sphinx
Other
178 stars 112 forks source link

lexicon.c:202:12: error: implicit declaration of function 'str2words' is invalid #23

Closed hcsaaron closed 3 years ago

hcsaaron commented 3 years ago

I had ran "./configure" arelady. And than ran "make" but not successfully.

$ make Making all in etc make[1]: Nothing to be done for all'. Making all in include /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am Making all in python make[1]: Nothing to be done forall'. Making all in scripts make[1]: Nothing to be done for all'. Making all in src Making all in libs Making all in libclust make[3]: Nothing to be done forall'. Making all in libcommon /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I/Users/Aaron/iOS/Sphinx/sphinxtrain-5prealpha/../sphinxbase-5prealpha-已编译/include -I/Users/Aaron/iOS/Sphinx/sphinxtrain-5prealpha/../sphinxbase-5prealpha-已编译/include -I../../../include -g -O2 -fPIC -DPIC -MT lexicon.lo -MD -MP -MF .deps/lexicon.Tpo -c -o lexicon.lo lexicon.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../include -I/Users/Aaron/iOS/Sphinx/sphinxtrain-5prealpha/../sphinxbase-5prealpha-已编译/include -I/Users/Aaron/iOS/Sphinx/sphinxtrain-5prealpha/../sphinxbase-5prealpha-已编译/include -I../../../include -g -O2 -fPIC -DPIC -MT lexicon.lo -MD -MP -MF .deps/lexicon.Tpo -c lexicon.c -fno-common -DPIC -o .libs/lexicon.o lexicon.c:202:12: error: implicit declaration of function 'str2words' is invalid in C99 [-Werror,-Wimplicit-function-declaration] n_phone = str2words(line->buf, NULL, 0) - 1; ^ 1 error generated. make[3]: [lexicon.lo] Error 1 make[2]: [all-recursive] Error 1 make[1]: [all-recursive] Error 1 make: [all-recursive] Error 1