是否可以在没有 Visual Studio 的情况下使用 C++ 为 Windows 开发?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/552019/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 15:55:16  来源:igfitidea点击:

Is is possible to develop for windows, in C++, without Visual Studio?

c++windowsvisual-studiowinapi

提问by Ben

I'm aspiring to work in real-time 3D graphics. I work almost exclusively in C++, with a healthy smattering of win32. Realistically, do I have any sane alternatives?

我渴望在实时 3D 图形中工作。我几乎只用 C++ 工作,对 win32 有一定的了解。实际上,我有任何理智的选择吗?

回答by jalf

You can use the MSVC compiler without the IDE. That's probably your best bet. It's a good compiler, and it is the de facto standard for Windows development.

您可以在没有 IDE 的情况下使用 MSVC 编译器。这可能是你最好的选择。它是一个很好的编译器,它是 Windows 开发的事实上的标准。

There is definitely nothing wrong with ditching the IDE and simply using the compiler.

放弃 IDE 并简单地使用编译器绝对没有错。

I believe the MSVC compiler can be used from the Code::Blocks IDE with no problems. Alternatively, invoking the compiler from the command-line is a tried and true approach too.

我相信 MSVC 编译器可以在 Code::Blocks IDE 中使用,没有任何问题。或者,从命令行调用编译器也是一种行之有效的方法。

回答by Harold

Eclipse: http://www.eclipse.org/

日食:http: //www.eclipse.org/

Code::Blocks is pretty cool: http://www.codeblocks.org/

Code::Blocks 非常酷:http: //www.codeblocks.org/

回答by Adam Hawes

Depends...

要看...

Cygwin/Mingwin gives you a compiler. Qt or wxWidgets gives you a GUI toolkit that's easy to use and both are portable.

Cygwin/Mingwin 为您提供了一个编译器。Qt 或 wxWidgets 为您提供了一个易于使用且可移植的 GUI 工具包。

I agree with the question though. Visual Studio is a pig. Its debugger is pretty nice, but the rest is a pig to work with (particularly coming from a OSS background where the tools don't generally try to lock you in).

不过我同意这个问题。Visual Studio 是一头猪。它的调试器非常好,但剩下的就很麻烦了(尤其是来自 OSS 背景的工具通常不会试图将您锁定)。

You could also look at nmake and calling the VC++ compiler tools directly from the command line.

您还可以查看 nmake 并直接从命令行调用 VC++ 编译器工具。

回答by Graeme Perrow

We use VC++ as a compiler / linker but use Jamto drive the builds. The actual Visual Studio is only used as a debugger. The benefit is that once we set up Jam to build a project in Windows, it takes minimal effort (frequently none) to get it working for Unix.

我们使用 VC++ 作为编译器/链接器,但使用Jam来驱动构建。实际的 Visual Studio 仅用作调试器。好处是一旦我们设置 Jam 以在 Windows 中构建项目,只需很少的努力(通常没有)即可使其在 Unix 上工作。

回答by jussij

The Zeus IDEworks just fine as a MSVCalternative. It can even import MSVCproject and solution files.

宙斯IDE工作得很好,作为一个MSVC的选择。它甚至可以导入MSVC项目和解决方案文件。

回答by jussij

The Code::BlocksIDE comes with the MinGW C++ compiler and support for wxWidgits. The IDE is pretty minimalist which may or may not be what you are looking for - I really like it.

代码::块IDE自带的MinGW的C ++编译器,并支持wxWidgits。IDE 非常简约,它可能是也可能不是您正在寻找的 - 我真的很喜欢它。

回答by Chris Ballance

Absolutely, but it's just a lot easier to use Microsoft's IDE to develop for a Microsoft operating system. When in Rome...

当然可以,但是使用 Microsoft 的 IDE 为 Microsoft 操作系统进行开发要容易得多。在罗马的时候...

Eclipseis a good alternative.

Eclipse是一个不错的选择。

回答by PostMan

Dev-C++I have found very useful, and free :)

我发现Dev-C++非常有用,而且免费 :)

回答by John T

Very possible, Qtis your friend. Qt Creatoris in RC stage too so something to look forward to. Until then you can use it with something like Code::Blocks.Code::Blocks itself is a great environment alone, and also has a lot of support for wxWidgets. If you're just looking for an IDE change, as previously mentioned, Code::Blocks can use compilers from other IDE's as well.

很有可能,Qt是你的朋友。Qt Creator也处于 RC 阶段,所以值得期待。在此之前,您可以将它与Code::Blocks 之类的东西一起使用Code::Blocks 本身就是一个很棒的环境,对 wxWidgets 也有很多支持。如果您只是在寻找 IDE 更改,如前所述,Code::Blocks 也可以使用来自其他 IDE 的编译器。

-John

-约翰

回答by Mike Kucera

Wascana Desktop Developeris a distribution of Eclipse CDT configured specifically for developing on Windows.

Wascana Desktop Developer是专门为在 Windows 上开发而配置的 Eclipse CDT 发行版。