适用于 Mac 的 C++ IDE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/220644/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C++ IDE for Macs
提问by JohnMcG
I teach a C++ course using Visual Studio. One of my students has a Mac and was looking for an IDE to use on his machine. What would be good to recommend?
我使用 Visual Studio 教授 C++ 课程。我的一个学生有一台 Mac,正在寻找一个 IDE 以在他的机器上使用。有什么好推荐的?
采纳答案by Grant Limberg
Xcodewhich is part of the MacOS Developer Tools is a great IDE. There's also NetBeansand Eclipsethat can be configured to build and compile C++ projects.
Xcode是 MacOS 开发者工具的一部分,是一个很棒的 IDE。还有可以配置为构建和编译 C++ 项目的NetBeans和Eclipse。
Clionfrom JetBrains, also is available now, and uses Cmake as project model.
来自 JetBrains 的Clion,现在也可用,并使用 Cmake 作为项目模型。
回答by Terry G Lorber
Emacs! Eclipse might work too.
埃马克!Eclipse 也可能工作。
回答by Head Geek
Code::Blocksis cross-platform, using the wxWidgetslibrary. It's the one I use.
Code::Blocks是跨平台的,使用wxWidgets库。是我用的那个。
回答by Michael Burr
Another (albeit non-free) option is to install VMware Fusion or Parallels Desktop on the Mac and run Windows with Visual Studio in a VM.
另一个(尽管不是免费的)选项是在 Mac 上安装 VMware Fusion 或 Parallels Desktop,并在 VM 中使用 Visual Studio 运行 Windows。
This works really pretty well. The downsides are:
这真的很好用。缺点是:
- it'll cost money for the virtual machine software and Windows (the school may have some academic licensing that may help here)
- the Mac needs to be an x86 Mac with a fair bit of memory
- 虚拟机软件和 Windows 需要花钱(学校可能有一些学术许可,这可能会有所帮助)
- Mac 需要是 x86 Mac,具有相当多的内存
The upside is that you and the student don't need to hassle with differences in the IDE that may not be accounted for in your instruction materials.
好处是你和学生不需要为 IDE 中的差异而烦恼,这些差异可能没有在你的指导材料中说明。
回答by nkr1pt
If you are looking for a full-fledged IDE like Visual Studio, I think Eclipse might be your best bet.
如果您正在寻找像 Visual Studio 这样成熟的 IDE,我认为 Eclipse 可能是您最好的选择。
Eclipse is also highly extensible and configurable.
Eclipse 还具有高度的可扩展性和可配置性。
See here: http://www.eclipse.org/downloads/
回答by mipadi
It's not really an IDE per se, but I really like TextMate, and with the C++ bundle that ships with it, it can do a lot of the things you'd find in an IDE (without all the bloat!).
它本身并不是一个真正的 IDE,但我真的很喜欢 TextMate,并且通过它附带的 C++ 包,它可以做很多你可以在 IDE 中找到的事情(没有所有的膨胀!)。
回答by Menkboy
回答by Joel Hoff
Avoid Eclipsefor C/C++ development for now on Mac OS X v10.6(Snow Leopard). There are serious problems which make debugging problematic or nearly impossible on it currently due to GDBincompatibility problems and the like. See: Trouble debugging C++ using Eclipse Galileo on Mac.
现在在Mac OS X v10.6(Snow Leopard)上避免使用Eclipse进行 C/C++ 开发。由于GDB不兼容问题等,目前存在严重的问题,导致调试出现问题或几乎不可能。请参阅:在 Mac 上使用 Eclipse Galileo 调试 C++ 时遇到问题。