windows 用于简单 C dll 的良好 IDE/编译器

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

Good IDE/compiler for simple C dll's

cwindowsidecompiler-construction

提问by ProfK

I'm trying to disassemble a C/C++ DLL, and have made some progress, but I would like to create my own C DLL with the same function the original exports, and compare disassemblies.

我正在尝试反汇编 C/C++ DLL,并取得了一些进展,但我想创建自己的 C DLL,其功能与原始导出的相同,并比较反汇编。

Visual Studio adds to much crap, and when I remove the crap and build my project, the expected DLL is missing.

Visual Studio 增加了很多废话,当我删除废话并构建我的项目时,缺少预期的 DLL。

I need a lightweight, preferably IDE, tool to edit and build very simple C libraries.

我需要一个轻量级的,最好是 IDE 的工具来编辑和构建非常简单的 C 库。

回答by dirkgently

Take a look at Code::Blocks

看看代码::块

回答by Gabi Davar

Dev-C++is a nice and fast IDE which works well with MingW.

Dev-C++是一个很好且快速的 IDE,它与 MingW 配合得很好。

But it's all been asked and answered before...

之前都被问过和回答......

回答by none

I need a lightweight, preferably IDE, tool to edit and build very simple C libraries.

我需要一个轻量级的,最好是 IDE 的工具来编辑和构建非常简单的 C 库。

I have found that one of the best ways to do integrated C-only Win32 development is using the freely available Lcc Win32 Compilerwhich comes with a built-in IDE, including resource editor. In fact, it is really very lightweight and can be run from a USB stick with some manual tweaking.

我发现进行集成 C-only Win32 开发的最佳方法之一是使用免费提供的Lcc Win32 编译器,它带有一个内置的 IDE,包括资源编辑器。事实上,它真的非常轻巧,可以通过一些手动调整从 U 盘运行。

It's indeed a really small downloadof just 6 mb and you can even download an optional Win32 API help filewhich is really useful while doing development.

这确实是一个只有 6 mb的非常小的下载,您甚至可以下载一个可选的Win32 API 帮助文件,这在进行开发时非常有用。

The compiler also comes with a C tutorial, as well as good user documentation detailing how to use the integrated Win32 resource editor "wedit", there's also an advanced manualabout more complex development tasks.

编译器还附带了C 教程,以及详细说明如何使用集成的 Win32 资源编辑器“wedit”的良好用户文档,还有关于更复杂的开发任务的高级手册

回答by Fernando Miguélez

GCC+ any text editor such as VIMis a very light alternative.

GCC+ 任何文本编辑器(例如VIM)是一个非常轻巧的替代方案。

For Windows Development, all you need is inside MinGW

对于 Windows 开发,您只需要在MinGW 中

Edit: If you are in dire need of an IDE you can also use the MinGW tools from Eclipse with the CDTplugin. Although it adds weightto the solution because of the installation of Eclipse, this is what I really use to build my small DLLs (JNI wrappers in my case).

编辑:如果您急需 IDE,您还可以使用 Eclipse 中的 MinGW 工具和CDT插件。尽管由于安装了 Eclipse,它增加了解决方案的权重,但这是我真正用来构建小型 DLL(在我的情况下为 JNI 包装器)的方法。

You can setup your small and direct makefiles or let Eclipse do it automatically for you and concentrate only on the source files (*.h, *.c).

您可以设置小型和直接的 makefile,或者让 Eclipse 自动为您完成并只专注于源文件(*.h、*.c)。

The best part of using this approach instead other IDE is that you do not need Eclipse to further build the DLL, since the underlying project files generated are standard ones directly usable by integrated dev inside MinGW (or any Unix distro) such as make, configure, automake, and so on.

使用这种方法而不是其他 IDE 的最佳部分是您不需要 Eclipse 来进一步构建 DLL,因为生成的底层项目文件是标准文件,可以由 MinGW(或任何 Unix 发行版)内部的集成开发人员直接使用,例如 make、configure 、automake 等。

回答by rama-jka toti

MinGW adds its own crap. Install your VC express properly and save yourself a lifetime of trouble.

MinGW 添加了自己的废话。正确安装您的 VC Express,免去您一生的麻烦。

Btw, you don't need to use Visual Studio for its compiler or vice versa. The oddity of missing a build dll is probably because you are not looking at the right path.

顺便说一句,您不需要为其编译器使用 Visual Studio,反之亦然。缺少构建 dll 的奇怪之处可能是因为您没有找到正确的路径。

If you are building C DLLs you really would benefit from its command line toolset and utilities, sdks, easy config etc. MS lock-in proprietary extensions are widely used (in context of you trying to emulate another dll), and last thing you need is chasing cross compiler issues..

如果您正在构建 C DLL,您真的会受益于它的命令行工具集和实用程序、sdks、简单的配置等。 MS 锁定专有扩展被广泛使用(在您尝试模拟另一个 dll 的上下文中),以及您需要的最后一件事正在解决交叉编译器问题..

回答by dagw

I'll second the vote for Code::Blocks, it's what I use (despite having VS 2008 installed as well). It is very simple and lightweight but has basically all the features you'd expect out of an IDE. It comes with several predefined project templates for all kinds of C and C++ development, including templates for DLLs.

我将投票支持Code::Blocks,这是我使用的(尽管也安装了 VS 2008)。它非常简单和轻量级,但基本上具有您期望从 IDE 中获得的所有功能。它带有多个预定义的项目模板,适用于各种 C 和 C++ 开发,包括 DLL 模板。

Download the version that includes MinGW and you get a complete lightweight IDE ready to start compiling. You can also easily configure it to use the Visual Studio compiler instead of gcc if you prefer.

下载包含 MinGW 的版本,您将获得一个完整的轻量级 IDE,可以开始编译。如果您愿意,您还可以轻松地将其配置为使用 Visual Studio 编译器而不是 gcc。

回答by dmityugov

try Open Watcom. A cross-platform product, well-supported by the community, lets you develop in DOS, Windows, OS/2 etc for a lot of platforms. Version 1.8 was released recently. Has a light-weight IDE indeed

尝试打开 Watcom。一个跨平台的产品,得到社区的大力支持,让你可以在 DOS、Windows、OS/2 等多种平台上进行开发。最近发布了 1.8 版。确实有一个轻量级的 IDE