什么 C++你会推荐我 IDE/方法吗?

发布于 2024-12-04 11:27:04 字数 671 浏览 1 评论 0原文

我知道这个问题之前已经被问过无数次了,但其他线程似乎相当旧,所以我决定创建一个新线程。

我于 11 月开始撰写学士论文,并为此用 C++ 编写一个程序。该程序将在 Linux 和 Windows(可能是 Mac)上可用,因此理想情况下我只需要重新编译我的代码即可。

你建议我怎么玩?首先在一个操作系统下完全开发它,然后尝试在另一个操作系统上编译它,并希望编译器相关的代码非常少,或者我应该在整个开发过程中检查我的代码是否足够可移植?

而且,我应该使用什么 IDE?如果需要的话,我希望使用 Qt,也许还有 Boost 或其他一些库。 我已经访问了 Visual Studio 2010。我还尝试了 CodeLite,并且非常喜欢它,除了调试器(我认为它非常不友好)和 SVN(我当时也没有弄清楚)。我使用 Eclipse CDT,主要用于调试器和 SVN,因为我经常使用 Eclipse for Java,但“总体上”仍然更喜欢 CodeLite。 或者我应该使用Qt SDK?

您认为哪一个最适合我的情况?

  • VS10 - 在这里开发所有内容,然后“移植”到 Linux
  • Eclipse CDT
  • CodeLite(任何值得推荐的插件?)
  • Qt SDK
  • 还有其他吗? (SVN 支持很重要)

谢谢

Evgeni

I know this question has been asked countless times before, but the other threads appear to be rather old, so I decided to make a new one.

Im starting my bachelor thesis in november and am writing a programm in C++ for that. The program will be available on Linux and Windows (possibly Mac) so ideally Ill just have to recompile my code.

How would you recommend me to play it? Develop it fully under one OS first, and then try to compile it on another and hope there is very little compiler-dependant code or should I check throughout the development if my code is portable enough?

And, what IDE should I use? Im looking to use Qt and maybe Boost or some other library, should the need arise.
Ive got acsess to Visual Studio 2010. I also tried CodeLite and liked that a lot, except the debugger, which I thought was very unfriendly and SVN, which I also didn't figure out back then. I used Eclipse CDT, mainly for the debugger and SVN, because I worked a lot with Eclipse for Java, but still preferred CodeLite "overall".
Or should I use Qt SDK?

Which of those would you think suit best in my case?

  • VS10 - Develop everything here, then "port" to Linux
  • Eclipse CDT
  • CodeLite (any recommedable plugins?)
  • Qt SDK
  • Some other? (SVN support is important)

Thanks

Evgeni

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

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

发布评论

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

评论(2

荒人说梦 2024-12-11 11:27:04

如果您想移植,请确保您的代码在每个里程碑的所有相关平台上进行编译。不要指望最终能够轻松地改进兼容性!

Qt 很棒。 CMake也是如此,它为各种平台生成构建环境;它也是 SVN 友好的。

我通常避免使用 Mircosoft,但 Visual Studio 具有出色的集成和调试功能,只需确保您的代码不依赖于它(从 CMake 派生 VS 项目并将其与 SVN 中的源代码分开)。

如果您的项目是一个严格的 Qt 项目,那么 Qt Creator 会很棒。如果您使用 Qt 只是为了拥有一个 UI/network/foo 库(任何 UI/network/foo 库),那么您可能会对其他方面更强大的东西感到更满意。

If you want to port, make sure your code compiles on all relevant platforms at each milestone. Don't expect to easily retrofit compatibility at the end!

Qt is great. So is CMake, which generates a build environment for various platforms; it's also SVN-friendly.

I generally avoid Mircosoft but Visual Studio has great integration and debugging, just make sure your code doesn't depend on it (derive the VS project from CMake and keep it separate from the source in SVN).

Qt Creator is great if your project is strongly a Qt project. If you are using Qt simply to have a UI/network/foo library -- any UI/network/foo library -- then you might be happier with something which is stronger in other aspects.

上课铃就是安魂曲 2024-12-11 11:27:04

便携和Qt?我会选择QtCreator

Portable and Qt? I'd go for QtCreator.

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