Linux gcc 4.1.2 ‘strnset’‘wcsnset’compiler error 要如何修正?
在 Linux 下,用 gcc 4.1.2 編譯,出現這些 error (gcc 3.xx 沒有錯誤),要如何修正這些錯誤?
../../../Lib/str/include/str.crt.h: In function ‘void str::set(char*, int, int)’:
../../../Lib/str/include/str.crt.h:36: error: ‘strnset’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘void str::set(wchar_t*, int, int)’:
../../../Lib/str/include/str.crt.h:37: error: ‘wcsnset’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘char* str::rev(char*)’:
../../../Lib/str/include/str.crt.h:80: error: ‘strrev’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘wchar_t* str::rev(wchar_t*)’:
../../../Lib/str/include/str.crt.h:81: error: ‘wcsrev’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘int str::icmp(const char*, const char*)’:
../../../Lib/str/include/str.crt.h:99: error: ‘stricmp’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘int str::icmp(const wchar_t*, const wchar_t*)’:
../../../Lib/str/include/str.crt.h:100: error: ‘wcsicmp’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘int str::icmp(const char*, const char*, int)’:
../../../Lib/str/include/str.crt.h:102: error: ‘strnicmp’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘int str::icmp(const wchar_t*, const wchar_t*, int)’:
../../../Lib/str/include/str.crt.h:103: error: ‘wcsnicmp’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘char* str::upr(char*)’:
../../../Lib/str/include/str.crt.h:153: error: ‘strupr’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘wchar_t* str::upr(wchar_t*)’:
../../../Lib/str/include/str.crt.h:154: error: ‘wcsupr’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘char* str::lwr(char*)’:
../../../Lib/str/include/str.crt.h:156: error: ‘strlwr’ was not declared in this scope
../../../Lib/str/include/str.crt.h: In function ‘wchar_t* str::lwr(wchar_t*)’:
../../../Lib/str/include/str.crt.h:157: error: ‘wcslwr’ was not declared in this scope