- 论坛徽章:
- 0
|
我有一个程序在linux下可以编译正确的但我在win2000下安装了cygwin,然后再cygwin里面运行时就要出错,
我在cygwin里面用命令行gcc -o greed greed.cc 编译时出现下面错误:
$ gcc -o ../bin/LAGreedy LAGreedy.cc
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from LAGreedy.cc:2:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This fi
le 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 in
clude substituting the <X>; header for the <X.h>; header for C++ includes, or <sst
ream>; instead of the deprecated header <strstream.h>;. To disable this warning us
e -Wno-deprecated.
/cygdrive/d/DOCUME~1/lzh.LZH/LOCALS~1/Temp/ccVUwrsp.o(.text+0x39):LAGreedy.cc: u
ndefined reference to `operator new[](unsigned)'
请问为什么????? |
|