gpt4 book ai didi

c++ - 我在哪里可以找到与 Clang 假设的目录结构相同的 mingw32?

转载 作者:可可西里 更新时间:2023-11-01 11:51:23 25 4
gpt4 key购买 nike

抱歉,我在哪里可以找到与 Clang 假设的目录结构相同的 mingw32?

我从这里下载了 32 位版本 http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/

还有一个来自这里http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/32-bit/threads-posix/dwarf/

但所有这些都与我运行时 clang 搜索的内容不同:

clang++ -v main.cpp
结果:

ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.0/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.0/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.0/include/c++/backward"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.1/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.1/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.1/include/c++/backward"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.2/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.2/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.2/include/c++/backward"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.3/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.3/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.7.3/include/c++/backward"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.0/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.0/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.0/include/c++/backward"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.1/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.1/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.1/include/c++/backward"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.2/include/c++"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.2/include/c++/mingw32"ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.8.2/include/c++/backward"ignoring nonexistent directory "/usr/include/c++/4.4"ignoring nonexistent directory "/usr/local/include"ignoring nonexistent directory "C:\LLVM\bin\..\lib\clang\3.6.0\../../../i686-w64-mingw32/include"ignoring nonexistent directory "C:\LLVM\bin\..\lib\clang\3.6.0\../../../x86_64-w64-mingw32/include"ignoring nonexistent directory "/mingw/include"ignoring nonexistent directory "c:/mingw/include"ignoring nonexistent directory "/usr/include"#include "..." search starts here:#include  search starts here: C:\LLVM\bin\..\lib\clang\3.6.0\include C:\LLVM\bin\..\lib\clang\3.6.0\../../../includeEnd of search list.main.cpp:1:10: fatal error: 'iostream' file not found#include 

最佳答案

你试过用mingw-get安装工具安装相应的编译器和头文件吗?据我所知,mingw 在 Windows 命令行中提供 GNU 工具,而 Cygwin 在类似于 *nix 的命令行(通常是 bash)中提供它们。显然你的错误是由于 clang 找不到标题,所以我想知道你是否正确安装了它们:)

关于c++ - 我在哪里可以找到与 Clang 假设的目录结构相同的 mingw32?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28779486/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com