Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/148.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 抱歉,未实现:未在中编译64位模式_C++_Windows_Mingw W64 - Fatal编程技术网

C++ 抱歉,未实现:未在中编译64位模式

C++ 抱歉,未实现:未在中编译64位模式,c++,windows,mingw-w64,C++,Windows,Mingw W64,这就是我要做的(在Windows 7 64位上): 我得到的错误是: Sorry, unimplemented: 64 bit mode not compiled in ... 我从这里安装了mingw-64-install.exe: 但我还是犯了同样的错误。是否还需要在环境变量中添加此文件夹的路径 这是我键入g++-v时得到的结果: Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexe

这就是我要做的(在Windows 7 64位上):

我得到的错误是:

Sorry, unimplemented: 64 bit mode not compiled in ...
我从这里安装了mingw-64-install.exe:

但我还是犯了同样的错误。是否还需要在环境变量中添加此文件夹的路径

这是我键入
g++-v
时得到的结果:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.9.3/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-4.9.3/configure --build=x86_64-pc-linux-gnu    --host=m
ingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i58
6 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-sha
red --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable- version-sp
ecific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-nls
 Thread model: win32​
 gcc version 4.9.3 <GCC>
使用内置规格。
收集\u GCC=g++
COLLECT\u LTO\u WRAPPER=c:/mingw/bin/。/libexec/gcc/mingw32/4.9.3/LTO-WRAPPER.exe
目标:mingw32
配置为:../src/gcc-4.9.3/configure--build=x86_64-pc-linux-gnu--host=m
ingw32--prefix=/mingw--disable-win32-registry--target=mingw32--with-arch=i58
6——启用语言= C、C++、Objc、Obj-C++、FORTRAN、艾达——启用静态-启用SHA
红色--启用线程--使用-dwarf2--禁用sjlj异常--启用-version sp
特定运行时libs--启用libstdcxx调试--使用tune=generic--启用nls
线程模型:win32​
gcc版本4.9.3

运行
mingw-64-install.exe
时,必须在设置屏幕上选择
x86\u 64
体系结构。在这种体系结构中,64位也是默认目标。如果运行
g++-v
,应该会得到如下结果:

C:\>g++-v
使用内置规格。
收集\u GCC=g++
COLLECT_LTO_WRAPPER=C:/Program\Files/mingw-w64/x86_64-5.3.0-posix-seh-rt_v4-rev0/mingw64/bin/。/libexec/gcc/x86_64-w64-mingw32/5.3.0/LTO-WRAPPER.exe
目标:x86_64-w64-mingw32
配置为:../../../src/gcc-5.3.0/configure--host=x86_64-w64-mingw32--build=x86_64-w64-mingw32--target=x86_64-w64-mingw32--prefix=/mingw64--with sysroot=/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64--with gxx include dir=/mingw64-w32/include/c++--enable共享库--disable静态--禁用多重库——启用语言= C、C++、FORTRAN,lto--enable libstdcxx time=yes--enable threads=posix--enable libgomp--enable libatomic--enable lto--enable graphite--enable checking=release--enable全动态字符串--enable版本特定的运行库libs--disable libstdcxx pch--disable libstdcxx debug--enable bootstrap--disable rpath--disable-win32-registry--disable-nls--disable-werror--disable-symvers--gnu-as--gnu-ld--arch=nocona--tune=core2--libiconv--system zlib--gmp=/c/mingw530/premissions/x86_64-w64-mingw32-static--mpfr=/c/mingw530/premissions/x86_64-w64-mingw32-static--使用mpc=/c/mingw530/Premissions/x86_64-w64-mingw32-static——使用isl=/c/mingw530/Premissions/x86_64-w64-mingw32-static——使用pkgversion='x86_64-posix-seh-rev0,由MinGW-W64项目构建——带有bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2-pipe-I/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/include-I/c/mingw530/prequirements/x86_64-zlib-static/include-I/c/mingw530/prequirements/x86_64-w64-mingw32-static/include'CXXFLAGS='-O2-pipe-I/c/mingw530/x86_64-530-posix-seh-rt_v4-rev0/mingw64/opt/include-I/c/mingw530/prediments/x86_64-zlib-static/include-I/c/mingw530/prediments/x86_64-wu 64-w64-w64-mingw32-static/include'CPPFLAGS=LDFLAGS='-pipe-L/c/mingw530/x86_64-530-posix-seh-rt-rt-rt)/mingw64-rev0/ming64-opt-vistensions/L/mingw64-L/c/mingw530/prerequisions/x86_64-w64-mingw32-static/lib'
线程模型:posix
gcc版本5.3.0(x86_64-posix-seh-rev0,由MinGW-W64项目构建)

目标行应该说,Windows 10 Home/AMD Ryzen 5 3400G存在此问题

出于某种原因,决定为主机安装程序
i686-8.1.0-win32-dwarf-rt_v6-rev0


解决方案是从另一个笔记本复制mingw64
x86_64-w64-mingw32
安装。

首先,我选择了x86_64,但它不起作用。然后我用i686重新安装(没有删除以前用x86_64安装的版本),但它不起作用,而且我忘了指定我以前也安装过32位版本。我还没有删除。@lads你们说的“没用”是什么意思?
g++-v
的输出是什么?我想问题是,我在安装MinGw 64位之前安装了MinGw 32位,当我使用g++时,它会进入32位版本。当我运行g++-v时,我有一个目标:win32@lads您如何启动您的MinGW shell?您是否尝试直接运行
C:\ProgramFiles\mingw-w64\x86\u 64-5.3.0-posix-seh-rt\u v4-rev0\mingw-w64.bat
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.9.3/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-4.9.3/configure --build=x86_64-pc-linux-gnu    --host=m
ingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i58
6 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-sha
red --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable- version-sp
ecific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-nls
 Thread model: win32​
 gcc version 4.9.3 <GCC>