工具/软件:TI C/C++编译器
我的 include (或任何使用字符串的标头、如 )在我的项目中、我收到下面的错误消息。 我对其他 STL 接头没有任何问题、例如 或 。 我已经尝试重新安装代码生成工具、但没有修复任何问题。
>>编译失败
source/subdir_rules.mk:163:目标'source/sys_main.obj'的配方失败
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/libcxx/__string "、第269行:错误#121:返回值类型与函数类型不匹配
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/libcxx/__string "、第375行:错误#121:返回值类型与函数类型不匹配
以下是编译器库中的引用行:
内联_LIBCPP_CONSTEXPR_after_CXX14 const char* char_stalnstalsists ::find (const char_type*__s、size_t __n、const char_type&__a)_NOEXCEPT { 如果(_n = 0) 返回空;//line 269 #if __has_feature (cxx_constexpr_string_builtins) 返回__builtin_char_memchr (__s、to_int_type (__a)、__n); #elif _LIBCPP_STD_VER <= 14 返回(const char_type*) memchr (__s、to_int_type (__a)、__n); #else 对于(;__n;-__n) { if (eq (*_s、__a)) 返回_s; ++_s; } 返回 NULL; #endif }
(笑声)
内联_LIBCPP_CONSTEXPR_After _CXX14 const wchar_t* char_petiS ::find (const char_type*__s、size_t __n、const char_type&__a)_NOEXCEPT { 如果(_n = 0) 返回空;//line 375 #if __has_feature (cxx_constexpr_string_builtins) 返回__builtin_Wmemchr (__s、__a、__n); #elif _LIBCPP_STD_VER <= 14 返回 wmemchr (__s、__a、__n); #else 对于(;__n;-__n) { if (eq (*_s、__a)) 返回_s; ++_s; } 返回 NULL; #endif }
感谢你的帮助。