NetBeans IDE 6.8 与 cygwin 1.7.5.1 不能很好地工作

发布于 2024-09-02 12:01:15 字数 1006 浏览 7 评论 0原文

我正在尝试使用 NetBeans 编译 C 代码,并拥有 cygwin

gcc 3.4.5 中的以下版本 克++3.4.5 GNU Make 3.81 GNU gdb 6.8.0

以下是尝试编译欢迎程序时出现的消息

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects     /Welcome_1'
/usr/bin/make  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/welcome_1.exe
make[2]: Entering directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects/Welcome_1'
mkdir -p build/Debug/MinGW-Windows
make[2]: mkdir: Command not found
make[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 127
make[2]: Leaving directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects/Welcome_1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects/Welcome_1'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)

是否值得下载以前的 cygwin 版本 (1.5)?博客教程(包括 NetBeans 站点)的示例中包含此旧版本。

I'm trying to use NetBeans to compile C code and have the following versions from cygwin

gcc 3.4.5
g++ 3.4.5
GNU Make 3.81
GNU gdb 6.8.0

Here are the messages from trying to compile the Welcome program

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects     /Welcome_1'
/usr/bin/make  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/welcome_1.exe
make[2]: Entering directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects/Welcome_1'
mkdir -p build/Debug/MinGW-Windows
make[2]: mkdir: Command not found
make[2]: *** [build/Debug/MinGW-Windows/welcome.o] Error 127
make[2]: Leaving directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects/Welcome_1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Users/Milktrader/Documents/NetBeansProjects/Welcome_1'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)

Is it worth downloading a previous cygwin version (1.5)? Blog tutorials (including the NetBeans site) have this older version in their examples.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初见终念 2024-09-09 12:01:15

您需要从主菜单中选择“工具”菜单(位于“团队”和“Windows”之间)。选择选项,您将看到一个精致的对话框,左侧有一个大白框,您可以在其中添加工具集合。如果选择 c:\cygwin\bin 作为基目录,NetBeans 会找到 c、c++ 编译器所需的内容以及 make 文件和调试器。请记住将 c:\cygwin 添加到 Windows PATH,但这在教程中。不知道为什么我需要手动输入这个,但这并不重要,因为它现在可以工作了。 替代文本 http://www.freeimagehosting.net/uploads/th.d1ec691fcc.png< /a>

You need to select the Tools menu from the Main menu (it's between Team and Windows). Select Options and you'll get an elaborate dialog that has a big white box on the left side where you can add a Tool Collection. If you select c:\cygwin\bin as the base directory, NetBeans finds what it needs for the c, c++ compilers along with the make file and debugger. Remember to add c:\cygwin to the Windows PATH, but this is in the tutorial. Not sure why I needed to manually input this, but it doesn't matter because it works now. alt text http://www.freeimagehosting.net/uploads/th.d1ec691fcc.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文