c - 在 Windows 7 上获取 Valgrind

标签 c windows-7 valgrind mingw-w64

我正在学习 C 并想在我的系统上安装 Valgrind,但是当我尝试安装 Valgrin 时,我收到一条错误消息,提示 Valgrind 是特定于操作系统的。抱歉 我正在运行 Windows 7,安装了 Mingw64 GIT。我做了一些研究,发现 this .据此我需要运行 sh ./configure --host x86_64 w64-mingw32 但是当我运行它时我得到以下输出:

$ sh ./configure --host x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw64-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... no, using cp -pR
checking for x86_64-w64-mingw64-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for x86_64-w64-mingw64-g++... no
checking for x86_64-w64-mingw64-c++... no
checking for x86_64-w64-mingw64-gpp... no
checking for x86_64-w64-mingw64-aCC... no
checking for x86_64-w64-mingw64-CC... no
checking for x86_64-w64-mingw64-cxx... no
checking for x86_64-w64-mingw64-cc++... no
checking for x86_64-w64-mingw64-cl.exe... no
checking for x86_64-w64-mingw64-FCC... no
checking for x86_64-w64-mingw64-KCC... no
checking for x86_64-w64-mingw64-RCC... no
checking for x86_64-w64-mingw64-xlC_r... no
checking for x86_64-w64-mingw64-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for x86_64-w64-mingw64-ranlib... no
checking for ranlib... ranlib
checking for a sed that does not truncate output... /usr/bin/sed
checking for ar... /c/mingw/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /c/mingw/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.7.2)
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-w64-mingw64
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... no (mingw64)
configure: error: Valgrind is operating system specific. Sorry.

所以我想,好吧,我有 Mingw64,所以我可以尝试一下,同样的事情。为什么会抛出我没有 Mingw 的异常,我该如何解决这个问题?

最佳答案

错误是说你的操作系统不受支持,它发现你的系统上的 Mingw 不受支持。

通常 valgrind 在 Windows 上不受支持。 Microsoft 有自己的 glibc 版本和自己的内核。制作一个可以在 Windows 上运行的 valgrind 版本需要大量的移植工作,目前没有人愿意这样做。

关于c - 在 Windows 7 上获取 Valgrind,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38019525/

相关文章:

CMD 上不显示 JAVA 版本

windows - 在哪里可以找到 Windows 应用程序的用户界面 (UI) 设计模式?

c - Ruby c 扩展 : How can I catch all exceptions, 包括不是 StandardErrors 的东西?

将 C 字符串转换为 Pascal 风格的字符串

windows-7 - Windows7 凭据提供程序在硬件事件上自动登录用户

c++ - 使用信号处理程序释放资源?

C 内存错误

c - 我不明白为什么我会收到这个 valgrind 错误

c - 堆栈的基本实现

c - 动态结构数组的初始化