-1

网络套接字通过gem install em-websocket. 得到这个错误:

compiling binder.cpp
cc1plus: warning: command line option ‘-Wimplicit-int’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++
In file included from binder.cpp:20:0:
project.h:25:20: fatal error: iostream: No such file or directory
compilation terminated.
Makefile:233: recipe for target 'binder.o' failed
make: *** [binder.o] Error 1
make failed, exit code 2
...

如何处理?

4

1 回答 1

0

iostream 是在 libstc++-6 中引入的。安装 libstdc++6-4.4-dev 由sudo apt-get install libstdc++6-4.4-dev. 它将删除当前安装的 g++。然后运行sudo apt-get install g++。这解决了我的问题。

于 2018-06-13T16:06:54.130 回答