EOS 编译 FAQ2
2019-04-16 本文已影响0人
比特松
...
error: expected unqualified-id
extern "C" {
^
error: no member named 'fabsf' in the global namespace; did you mean 'labs'?
abs(float __lcpp_x) _NOEXCEPT {return ::fabsf(__lcpp_x);}
error: no member named 'ceilf' in the global namespace; did you mean 'ceil'?
inline _LIBCPP_INLINE_VISIBILITY float ceil(float __lcpp_x) _NOEXCEPT {return ::ceilf(__lcpp_x);}
error: no member named 'fabs' in the global namespace
error: no member named 'atanf' in the global namespace; did you mean 'atan'?
error: no member named 'cosf' in the global namespace; did you mean 'cos'?
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make[2]: *** [contracts/hello/hello.cpp.bc] Error 1
make[1]: *** [contracts/hello/CMakeFiles/hellodir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 90%] Built target eosio_chain
make: *** [all] Error 2
>>>>>>>>>>>>>>>>>>>> MAKE building EOSIO has exited with the above error.
有时候可能因为合约 class 定义后面漏写了分号导致上述出错信息,不太判断具体出错地点,加上就👌了。