Dear Nancy,
It looks like that you are using a compiler that does not include the
string.h header automatically. Please add "#include <string.h>" to all
files where the compiler can not find any of the strXXX functions,
especially to configz.cpp. Then it may be easier for you to use the
makefile_phnrec.lin makefile instead of makefile.lin. This will discard
the STKLib library. It is not necessary for phoneme recognition at all.
It may be useful for some grammar based recognition and keyword spotting
only.
Best regards,
Petr
Dne 7.3.2013 3:20, Nancy Chen napsal(a):
> stkstream.tcc: In static member function �static void
> STK::basic_stkbuf<_CharT, _Traits>::open_mode(std::_Ios_Openmode, int&,
> int&, char*)�:
> stkstream.tcc:89: error: there are no arguments to �strcpy� that depend on
> a template parameter, so a declaration of �strcpy� must be available
> stkstream.tcc:89: error: (if you use �-fpermissive�, G++ will accept your
> code, but allowing the use of an undeclared name is deprecated)
> stkstream.tcc:91: error: there are no arguments to �strcpy� that depend on
> a template parameter, so a declaration of �strcpy� must be available
> stkstream.tcc:93: error: there are no arguments to �strcpy� that depend on
> a template parameter, so a declaration of �strcpy� must be available
> stkstream.tcc:95: error: there are no arguments to �strcpy� that depend on
> a template parameter, so a declaration of �strcpy� must be available
> stkstream.tcc:97: error: there are no arguments to �strcpy� that depend on
> a template parameter, so a declaration of �strcpy� must be available
> stkstream.tcc:99: error: there are no arguments to �strcpy� that depend on
> a template parameter, so a declaration of �strcpy� must be available
> stkstream.tcc:101: error: there are no arguments to �strcat� that depend on
> a template parameter, so a declaration of �strcat� must be available
> dict.C: In function �void ReadDictionary(const char*, MyHSearchData*,
> MyHSearchData*)�:
> dict.C:35: warning: deprecated conversion from string constant to �char*�
> dict.C:42: warning: deprecated conversion from string constant to �char*�
> dict.C:45: warning: deprecated conversion from string constant to �char*�
> dict.C:56: warning: deprecated conversion from string constant to �char*�
> dict.C:63: warning: deprecated conversion from string constant to �char*�
> dict.C:72: warning: deprecated conversion from string constant to �char*�
> dict.C:86: warning: deprecated conversion from string constant to �char*�
> dict.C:96: warning: deprecated conversion from string constant to �char*�
> dict.C:108: warning: deprecated conversion from string constant to �char*�
> dict.C:115: warning: deprecated conversion from string constant to �char*�
> dict.C:120: warning: deprecated conversion from string constant to �char*�
> make[1]: *** [dict.o] Error 1
> make[1]: Leaving directory
> `/home/nfychen/research/summarization/brno-phone-decode/PhnRec/STKLib'
> g++ -g -DUSE_BLAS -DDOUBLEPRECISION=0 -D_REENTRANT -I . -ISTKLib
> -ISTKLib\\gnu -D NN_FAST_EXP -O2 -LSTKLib -c -o configz.o configz.cpp
> configz.cpp: In member function �int Config::Load(char*, int*)�:
> configz.cpp:134: error: �strcpy� was not declared in this scope
> configz.cpp:145: error: �strtok� was not declared in this scope
> configz.cpp: In member function �int Config::Save(char*)�:
> configz.cpp:180: error: �strcpy� was not declared in this scope
> configz.cpp: In member function �void Config::SetBool(char*, char*, bool)�:
> configz.cpp:259: warning: deprecated conversion from string constant to
> �char*�
> configz.cpp:261: warning: deprecated conversion from string constant to
> �char*�