Currently I`m using Visual Studio for writing code in C++. But it seems so weighty that I decided to switch for another one, preferably free, not so strict to system resources (I mean memory, of course) as VS to learn libraries, such as Boost and Qt. What compiler do you suggest?
目前我使用Visual Studio在C ++中编写代码。但它似乎很重,以至于我决定换另一个,最好是免费的,而不是那么严格的系统资源(我的意思是内存,当然)作为VS来学习库,比如Boost和Qt。你建议用什么编译器?
11 个解决方案
#1
Code::blocks is exactly what you are after. You can can download it here: http://www.codeblocks.org/downloads/5
Code :: blocks正是你所追求的。你可以在这里下载:http://www.codeblocks.org/downloads/5
Choose the version with the mingw compiler bundled with it (Windows port of GCC). You can switch between that and the VC++ compiler as and when you like.
选择与其捆绑的mingw编译器的版本(GCC的Windows端口)。您可以根据需要在它和VC ++编译器之间切换。
Code::Blocks has all the stuff you want, debugger integration, code completion, class browser, todo list etc. etc. It even import visual C++ projects.
Code :: Blocks拥有您想要的所有东西,调试器集成,代码完成,类浏览器,待办事项列表等。它甚至可以导入可视化C ++项目。
Don't use Dev C++ which has already been recommended. It's very very old and outdated.
不要使用已经推荐的Dev C ++。这是非常古老和过时的。
#2
I'd suggest using Visual Studio's compiler from the command-line. You get the same high-quality compiler, without the resource-hogging IDE.
我建议从命令行使用Visual Studio的编译器。您可以获得相同的高质量编译器,而无需占用资源的IDE。
Although the IDE is pretty good too, and probably worth the resources it uses.
虽然IDE也很不错,但可能值得使用它的资源。
#3
If you want to learn unix tools download and install cygwin It's a good set of tools but a full install takes up 5 or 6 gigs because so much is included.
如果你想学习unix工具下载并安装cygwin这是一套很好的工具,但完整的安装需要5或6个演出,因为包含了很多。
#4
There is always Digital Mars. Also, you can freely download Microsoft WDK which comes with their C/C++ compiler and command-line build system.
总有数字火星。此外,您可以免费下载Microsoft WDK,它随附C / C ++编译器和命令行构建系统。
#5
You will be hard-pressed to find an IDE as capable as MS VS. It is incredibly feature-rich.
您将很难找到具有MS VS功能的IDE。它功能非常丰富。
However, if you just want command line compiling and linking it can do that too.
但是,如果您只是想要命令行编译和链接,它也可以这样做。
GCC is also an option.
GCC也是一种选择。
#6
Please note that you do not need another compiler or IDE to use boost libraries. I wouldn't replace Visual Studio with any other IDE/compiler, at least not on Windows. Installing Cygwin or SUA (better than Cygwin, closer to the Windows Kernel) will only be a pain just for what you are trying to reach.
请注意,您不需要其他编译器或IDE来使用boost库。我不会用任何其他IDE /编译器替换Visual Studio,至少不能在Windows上替换。安装Cygwin或SUA(优于Cygwin,更接近Windows内核)只会让您感到痛苦。
Try to minimize the memory usage by disabling unnecessary things, keep the amount of open source files small, use an alternative to document explorer to find help (your browser on msdn will do). Besides that, I wouldn't call a few ten megabytes of memory a high usage. As long as it doesn't slow your system down there is not a real issue.
尝试通过禁用不必要的东西来最小化内存使用量,保持开源文件的数量很少,使用文档资源管理器的替代方法来寻找帮助(msdn上的浏览器会这样做)。除此之外,我不会将几十兆字节的内存称为高使用率。只要不降低系统速度,就不存在真正的问题。
A better idea would be to upgrade your computer rather than to replace something powerful with something that you don't know.
更好的想法是升级你的计算机,而不是用你不认识的东西替换强大的东西。
#7
Seriously there is no real alternative to Ms's compiler on Windows. All the others are OK if you can't spring for Visual Studio or if you are just doing hobbyist work. Cygwin can be a pain to deal with.
说真的,在Windows上没有Ms编译器的真正替代品。如果你不能参加Visual Studio,或者你只是做爱好者的工作,那么所有其他人都可以。 Cygwin可能很难对付。
If you don't want the IDE as someone else suggested just use the command-line compiler.
如果您不希望IDE像其他人建议那样使用命令行编译器。
I've found VS to be quite good for doing Boost + Qt work. Especially if you have the Qt + VS integration tool. You get a GUI designer and respectable Qt project management tools.
我发现VS非常适合做Boost + Qt工作。特别是如果你有Qt + VS集成工具。您将获得一个GUI设计师和值得尊敬的Qt项目管理工具。
#8
If you are looking for a compiler that uses fewer system resources than the MS ones, you'll probably find that most modern compilers that are able to compile a good part of or almost everything in Boost will be quite heavy on system resources, both processor usage and memory consumption. To a certain extent that's just par for the course when it comes to C++.
如果您正在寻找使用比MS更少的系统资源的编译器,您可能会发现大多数现代编译器能够编译Boost中的大部分或几乎所有内容都会在系统资源上非常繁重,两者都是处理器使用和内存消耗。在某种程度上,这与C ++课程相当。
That said, I do like to have a second compiler around if I'm writing portable code as it's a lot easier to iron out portability issues when you can ensure that the code compiles in different environments. If you want to do all that on Windows, may Cygwin is worth a look. However it does seem that the GCC you get with Cygwin is not exactly what you'd call up to date.
也就是说,如果我正在编写可移植代码,我喜欢有第二个编译器,因为当你可以确保代码在不同环境中编译时,更容易解决可移植性问题。如果你想在Windows上做所有这些,可能值得一看Cygwin。然而,看起来你用Cygwin获得的GCC并不完全是你最新的。
The aforementioned Digital Mars compilers are well worth a look, Walter Bright (the guy behind them) has been writing C++ compilers for a long time and they're pretty good. I have used them off and on since the early nineties and I've always been happy with them. Not to mention that they always seemed noticeably faster than the Microsoft offerings, but I haven't got any recent measurements to back that up.
前面提到的数字火星编译器非常值得一看,Walter Bright(他们背后的人)长期以来一直在编写C ++编译器并且它们非常好。自九十年代初以来,我一直在使用它们,我一直很满意它们。更不用说它们似乎总是比微软产品明显更快,但我最近还没有任何测量结果来支持它。
At the end of the day, most third-party tool vendors on Windows tend to target the MS environment so if you're writing C++ code professionally and need/want tools like leak detectors, you pretty much need to be able to build with the MS compilers, even if they aren't your main development environment.
在一天结束时,Windows上的大多数第三方工具供应商倾向于以MS环境为目标,因此如果您专业编写C ++代码并且需要/需要泄漏检测器之类的工具,那么您几乎需要能够使用MS编译器,即使它们不是您的主要开发环境。
#9
I sugget , Netbeans.org NetBeans IDE , download the Cygwin , follow one tutorial from http://www.netbeans.org for C++ confuguration at Netbeans IDE , just 2 steps.. and u are ok autocomplete (faster than VS')
我建议,Netbeans.org NetBeans IDE,下载Cygwin,按照http://www.netbeans.org上的一个教程,在Netbeans IDE中进行C ++配置,只需2步......你可以自动完成(比VS'快)
classes and all... you want xD
课程和所有......你想要xD
#10
It needs to mention about DevCpp. It is a simple UI wrap for gcc compiler (oh my, it is sounds like a tautology). It provides lightweight IDE but not so stable (so, its IntelliSense is somewhat buggy).
需要提一下DevCpp。它是gcc编译器的简单UI包装(哦,我的,听起来像是重言式)。它提供了轻量级的IDE,但不是那么稳定(因此,它的IntelliSense有些错误)。
#11
If you use Qt why not use their IDE, QtCreator, there is compiler, debugger and GUI designer. All comes in one nice package and works on Windows, Mac and Linux.
如果你使用Qt为什么不使用他们的IDE,QtCreator,那就有编译器,调试器和GUI设计器。所有这些都有一个很好的软件包,适用于Windows,Mac和Linux。
In my opinion it's better than Code::Blocks (also based on MinGW/GCC).
在我看来,它比Code :: Blocks(也基于MinGW / GCC)更好。
#1
Code::blocks is exactly what you are after. You can can download it here: http://www.codeblocks.org/downloads/5
Code :: blocks正是你所追求的。你可以在这里下载:http://www.codeblocks.org/downloads/5
Choose the version with the mingw compiler bundled with it (Windows port of GCC). You can switch between that and the VC++ compiler as and when you like.
选择与其捆绑的mingw编译器的版本(GCC的Windows端口)。您可以根据需要在它和VC ++编译器之间切换。
Code::Blocks has all the stuff you want, debugger integration, code completion, class browser, todo list etc. etc. It even import visual C++ projects.
Code :: Blocks拥有您想要的所有东西,调试器集成,代码完成,类浏览器,待办事项列表等。它甚至可以导入可视化C ++项目。
Don't use Dev C++ which has already been recommended. It's very very old and outdated.
不要使用已经推荐的Dev C ++。这是非常古老和过时的。
#2
I'd suggest using Visual Studio's compiler from the command-line. You get the same high-quality compiler, without the resource-hogging IDE.
我建议从命令行使用Visual Studio的编译器。您可以获得相同的高质量编译器,而无需占用资源的IDE。
Although the IDE is pretty good too, and probably worth the resources it uses.
虽然IDE也很不错,但可能值得使用它的资源。
#3
If you want to learn unix tools download and install cygwin It's a good set of tools but a full install takes up 5 or 6 gigs because so much is included.
如果你想学习unix工具下载并安装cygwin这是一套很好的工具,但完整的安装需要5或6个演出,因为包含了很多。
#4
There is always Digital Mars. Also, you can freely download Microsoft WDK which comes with their C/C++ compiler and command-line build system.
总有数字火星。此外,您可以免费下载Microsoft WDK,它随附C / C ++编译器和命令行构建系统。
#5
You will be hard-pressed to find an IDE as capable as MS VS. It is incredibly feature-rich.
您将很难找到具有MS VS功能的IDE。它功能非常丰富。
However, if you just want command line compiling and linking it can do that too.
但是,如果您只是想要命令行编译和链接,它也可以这样做。
GCC is also an option.
GCC也是一种选择。
#6
Please note that you do not need another compiler or IDE to use boost libraries. I wouldn't replace Visual Studio with any other IDE/compiler, at least not on Windows. Installing Cygwin or SUA (better than Cygwin, closer to the Windows Kernel) will only be a pain just for what you are trying to reach.
请注意,您不需要其他编译器或IDE来使用boost库。我不会用任何其他IDE /编译器替换Visual Studio,至少不能在Windows上替换。安装Cygwin或SUA(优于Cygwin,更接近Windows内核)只会让您感到痛苦。
Try to minimize the memory usage by disabling unnecessary things, keep the amount of open source files small, use an alternative to document explorer to find help (your browser on msdn will do). Besides that, I wouldn't call a few ten megabytes of memory a high usage. As long as it doesn't slow your system down there is not a real issue.
尝试通过禁用不必要的东西来最小化内存使用量,保持开源文件的数量很少,使用文档资源管理器的替代方法来寻找帮助(msdn上的浏览器会这样做)。除此之外,我不会将几十兆字节的内存称为高使用率。只要不降低系统速度,就不存在真正的问题。
A better idea would be to upgrade your computer rather than to replace something powerful with something that you don't know.
更好的想法是升级你的计算机,而不是用你不认识的东西替换强大的东西。
#7
Seriously there is no real alternative to Ms's compiler on Windows. All the others are OK if you can't spring for Visual Studio or if you are just doing hobbyist work. Cygwin can be a pain to deal with.
说真的,在Windows上没有Ms编译器的真正替代品。如果你不能参加Visual Studio,或者你只是做爱好者的工作,那么所有其他人都可以。 Cygwin可能很难对付。
If you don't want the IDE as someone else suggested just use the command-line compiler.
如果您不希望IDE像其他人建议那样使用命令行编译器。
I've found VS to be quite good for doing Boost + Qt work. Especially if you have the Qt + VS integration tool. You get a GUI designer and respectable Qt project management tools.
我发现VS非常适合做Boost + Qt工作。特别是如果你有Qt + VS集成工具。您将获得一个GUI设计师和值得尊敬的Qt项目管理工具。
#8
If you are looking for a compiler that uses fewer system resources than the MS ones, you'll probably find that most modern compilers that are able to compile a good part of or almost everything in Boost will be quite heavy on system resources, both processor usage and memory consumption. To a certain extent that's just par for the course when it comes to C++.
如果您正在寻找使用比MS更少的系统资源的编译器,您可能会发现大多数现代编译器能够编译Boost中的大部分或几乎所有内容都会在系统资源上非常繁重,两者都是处理器使用和内存消耗。在某种程度上,这与C ++课程相当。
That said, I do like to have a second compiler around if I'm writing portable code as it's a lot easier to iron out portability issues when you can ensure that the code compiles in different environments. If you want to do all that on Windows, may Cygwin is worth a look. However it does seem that the GCC you get with Cygwin is not exactly what you'd call up to date.
也就是说,如果我正在编写可移植代码,我喜欢有第二个编译器,因为当你可以确保代码在不同环境中编译时,更容易解决可移植性问题。如果你想在Windows上做所有这些,可能值得一看Cygwin。然而,看起来你用Cygwin获得的GCC并不完全是你最新的。
The aforementioned Digital Mars compilers are well worth a look, Walter Bright (the guy behind them) has been writing C++ compilers for a long time and they're pretty good. I have used them off and on since the early nineties and I've always been happy with them. Not to mention that they always seemed noticeably faster than the Microsoft offerings, but I haven't got any recent measurements to back that up.
前面提到的数字火星编译器非常值得一看,Walter Bright(他们背后的人)长期以来一直在编写C ++编译器并且它们非常好。自九十年代初以来,我一直在使用它们,我一直很满意它们。更不用说它们似乎总是比微软产品明显更快,但我最近还没有任何测量结果来支持它。
At the end of the day, most third-party tool vendors on Windows tend to target the MS environment so if you're writing C++ code professionally and need/want tools like leak detectors, you pretty much need to be able to build with the MS compilers, even if they aren't your main development environment.
在一天结束时,Windows上的大多数第三方工具供应商倾向于以MS环境为目标,因此如果您专业编写C ++代码并且需要/需要泄漏检测器之类的工具,那么您几乎需要能够使用MS编译器,即使它们不是您的主要开发环境。
#9
I sugget , Netbeans.org NetBeans IDE , download the Cygwin , follow one tutorial from http://www.netbeans.org for C++ confuguration at Netbeans IDE , just 2 steps.. and u are ok autocomplete (faster than VS')
我建议,Netbeans.org NetBeans IDE,下载Cygwin,按照http://www.netbeans.org上的一个教程,在Netbeans IDE中进行C ++配置,只需2步......你可以自动完成(比VS'快)
classes and all... you want xD
课程和所有......你想要xD
#10
It needs to mention about DevCpp. It is a simple UI wrap for gcc compiler (oh my, it is sounds like a tautology). It provides lightweight IDE but not so stable (so, its IntelliSense is somewhat buggy).
需要提一下DevCpp。它是gcc编译器的简单UI包装(哦,我的,听起来像是重言式)。它提供了轻量级的IDE,但不是那么稳定(因此,它的IntelliSense有些错误)。
#11
If you use Qt why not use their IDE, QtCreator, there is compiler, debugger and GUI designer. All comes in one nice package and works on Windows, Mac and Linux.
如果你使用Qt为什么不使用他们的IDE,QtCreator,那就有编译器,调试器和GUI设计器。所有这些都有一个很好的软件包,适用于Windows,Mac和Linux。
In my opinion it's better than Code::Blocks (also based on MinGW/GCC).
在我看来,它比Code :: Blocks(也基于MinGW / GCC)更好。