简体   繁体   English

Netbeans C ++ MinGW设置

[英]Netbeans C++ MinGW settings

I've installeed Netbeans 7.0.1 and MinGW on my computer, but when I tried to build a project, it shows the error message: 我已经在计算机上安装了Netbeans 7.0.1和MinGW,但是当我尝试构建项目时,它会显示错误消息: 在此处输入图片说明

I googled the problem, and every solution said that I need to add MYSY to Path, so I did it; 我搜索了这个问题,每个解决方案都说我需要将MYSY添加到Path中,所以我做到了。 and restarted netbeans, but the problem still shows up, I'm thinking about maybe it's because I installed Qt4.7.4 so there maybe some conflicts in %Path%, 并重新启动netbeans,但问题仍然存在,我在想也许是因为我安装了Qt4.7.4,所以%Path%中可能存在一些冲突,

here is the two Paths in my computer: 这是我计算机中的两个路径:

User variables for shengy: shengy的用户变量:

C:\\Program Files\\Microsoft Visual Studio\\Common\\Tools\\WinNT;C:\\Program Files\\Microsoft Visual Studio\\Common\\MSDev98\\Bin;C:\\Program Files\\Microsoft Visual Studio\\Common\\Tools;C:\\Program Files\\Microsoft Visual Studio\\VC98\\bin;C:\\Program Files\\IDM Computer Solutions\\UltraEdit\\;C:\\boost_1_34_1;C:\\Program Files\\Telelogic\\Telelogic Synergy 6.5\\bin;C:\\Program Files\\Telelogic\\Telelogic Synergy 6.5\\lib; C:\\ Program Files \\ Microsoft Visual Studio \\ Common \\ Tools \\ WinNT; C:\\ Program Files \\ Microsoft Visual Studio \\ Common \\ MSDev98 \\ Bin; C:\\ Program Files \\ Microsoft Visual Studio \\ Common \\ Tools; C:\\ Program Files \\ Microsoft Visual Studio \\ VC98 \\ bin; C:\\ Program Files \\ IDM计算机解决方案\\ UltraEdit \\; C:\\ boost_1_34_1; C:\\ Program Files \\ Telelogic \\ Telelogic Synergy 6.5 \\ bin; C:\\ Program Files \\ Telelogic \\ Telelogic Synergy 6.5 \\ lib;

System variables: 系统变量:

C:\\Perl\\bin\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\COSMIC\\CXS12X;C:\\COSMIC\\CX12;C:\\Program Files\\PC Connectivity Solution\\;C:\\shengy\\ComplieCommands;C:\\QtSDK\\Desktop\\Qt\\4.7.3\\mingw\\lib;C:\\Program Files\\Telelogic\\Telelogic Synergy 6.5\\bin;C:\\MinGW\\msys\\1.0\\bin;C:\\MinGW\\bin; C:\\ Perl \\ bin \\; C:\\ WINDOWS \\ system32; C:\\ WINDOWS; C:\\ WINDOWS \\ System32 \\ Wbem; C:\\ WINDOWS \\ system32 \\ WindowsPowerShell \\ v1.0; C:\\ Program Files \\ doxygen \\ bin; C:\\ Program Files \\ QuickTime \\ QTSystem \\; C:\\ Program Files \\ COSMIC \\ CXS12X; C:\\ COSMIC \\ CX12; C:\\ Program Files \\ PC连接解决方​​案\\; C:\\ shengy \\ ComplieCommands; C: \\ QtSDK \\ Desktop \\ Qt \\ 4.7.3 \\ mingw \\ lib; C:\\ Program Files \\ Telelogic \\ Telelogic Synergy 6.5 \\ bin; C:\\ MinGW \\ msys \\ 1.0 \\ bin; C:\\ MinGW \\ bin;

please help me about this. 请帮助我。 Thanks 谢谢

make shure you have set the correct tool collection for mingw ( options -> C/C++ -> Build tools , Base directory: C:\\MinGW\\bin ). 请确保已为mingw设置了正确的工具集合( options -> C/C++ -> Build toolsBase directory: C:\\MinGW\\bin )。

All compilers / commands (excluding make / qmake ) should point to there too. 所有编译器/命令(不包括make / qmake )也应指向该位置。

Also make shure ... 也要嘘...

  • you can run mkdir from cmd 您可以从cmd运行mkdir
  • if qt ships its own MinGW: you use yours (maybe you can remove the one from qt) 如果qt附带了自己的MinGW:您使用自己的(也许可以从qt中删除一个)
  • move the path variables from mingw before the one from qt path变量从mingw移动到qt 之前path

See: 看到:

edit: does C:\\shengy\\ComplieCommands contain any mingw / gcc programs? 编辑: C:\\shengy\\ComplieCommands包含任何mingw / gcc程序?

i had a problem like it. 我有这样的问题。 i think you should install MYSY (as you did) and then adjust netbeans like below: 我认为您应该像以前那样安装MYSY,然后像下面那样调整netbeans:
tools->c/c++ -> build tools -> make command set to mysys\\bin\\make.exe 工具-> c / c ++->构建工具->将命令设置为mysys \\ bin \\ make.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM