- 论坛徽章:
- 0
|
gcc为何编译不了C++程序
俺也遇到这问题了,比如
- #include <iostream.h>;
-
- main()
- {
- cout<<"hello,world!!!";
- }
复制代码
然后gcc hello.cpp -o hello报错:
gcc: hello: No such file or directory
In file included from /usr/include/c++/3.2.3/backward/iostream.h:31,
from hello.cpp:1:
/usr/include/c++/3.2.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X>; header for the <X.h>; header for C++ includes, or <sstream>; instead of the deprecated header <strstream.h>;. To disable this warning use -Wno-deprecated.
 |
|