- 论坛徽章:
- 0
|
我是新手,刚刚接触linux,找了一本c++ 的书看了一点,里边给了很多例子,
我就试了几个,原封不动的抄上的,在windows下用Borland 编译成功的代码
在linux gcc里就成功不了,不是这毛病就是那问题,好象是函数库不太一样的原因,
我是新手阿 ,不懂,瞎说,恳请大家帮忙,到现在为止就编译成功过一段代码
Hello World 那段,晕阿,快疯了
In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
from sunday.cpp:1:
/usr/include/c++/3.2.2/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.
sunday.cpp:4: `main' must return `int'
尤其是最后一句,好象是经常能看到差不多的 |
|