cygwin g ++不产生输出

fre*_*set 0 cygwin g++

我刚刚从cygwin安装了g ++,当我尝试编译C++文件时,我没有得到编译器生成的任何可执行文件,请参阅下面的示例.出了什么问题?

 Directory of C:\helloworld

01/02/2011  04:50 PM              .
01/02/2011  04:50 PM              ..
01/02/2011  04:48 PM                94 helloworld.cpp
               1 File(s)             94 bytes
               2 Dir(s)  24,658,272,256 bytes free

C:\helloworld>g++-4 helloworld.cpp

C:\helloworld>dir
 Volume in drive C is OS
 Volume Serial Number is C47B-942D

 Directory of C:\helloworld

01/02/2011  04:50 PM              .
01/02/2011  04:50 PM              ..
01/02/2011  04:48 PM                94 helloworld.cpp
               1 File(s)             94 bytes
               2 Dir(s)  24,657,747,968 bytes free

C:\helloworld>

Jan*_*Jan 5

对于那些最终在这里使用g ++产生无输出的人.

我通过cygcheck -s在cygwin终端窗口中运行来解决它.这会检查(以及其他)cygwin1.dll的多个实例.在我的情况下,WinAVR导致问题,uinstalling做了伎俩

此链接也有助于让Cygwin正常运行:http://thehacklist.blogspot.nl/2009/04/cygwin-ls-command-not-found.html