且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用cygwin中的fork编译程序问题

更新时间:2023-11-08 18:32:10

链接器找不到标准C库。

The linker can't find the standard C libraries.

您是否以正常方式安装Cygwin? (这里有一个简单的指南: http://www.eecg.utoronto.ca/ 〜aamodt / ece242 / cygwin.html )。

Did you install Cygwin in the normal way? (Here's a simple guide: http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html).

您可以编译更简单的程序:

Have you been able to compile even simpler programs:

#include <stdio.h>

int main(int argc, char **argv) {
    printf("Found C library.\n");
}



如果不编译,你可能只是试图删除并重新安装Cygwin - 有东西坏了。

If that doesn't compile, you might just want to try removing and reinstalling Cygwin - something is broken.