Netbeans Msys2使Cygwin1.dll问题

时间:2020-07-21 05:35:26

标签: netbeans cygwin msys2

我正在使用Netbeans 11和MSYS2 MINGW64 G ++。

这是我的工具链的屏幕截图:

enter image description here

当我尝试运行简单的Hello World c ++时,出现以下错误:

     0 [main] cppapplication_2_cygwin_try (19728) D:\Program-Workspaces\netbean
s11\CppApplication_2_Cygwin_Try\dist\Debug\MinGW_2-Windows\cppapplication_2_cygw
in_try.exe: *** fatal error - cygheap base mismatch detected - 0x180343408/0x180
347408.                                                                         
This problem is probably due to using incompatible versions of the cygwin DLL.  
Search for cygwin1.dll using the Windows Start->Find/Search facility            
and delete all but the most recent version.  The most recent version *should*   
reside in x:\cygwin\bin, where 'x' is the drive on which you have               
installed the cygwin distribution.  Rebooting is also suggested if you          
are unable to find another cygwin DLL.  

在其他情况下,例如使用CLANG ++编译器时,一切都可以通过make.exe很好地编译。

有人可以帮忙吗?

谢谢。

编辑:添加NB11消息:

cd 'D:\Program-Workspaces\netbeans11\CppApplication_2_Cygwin_Try'
D:\Programs\msys64\usr\bin\make.exe -f Makefile CONF=Debug
"/D/Programs/msys64/usr/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'
"/D/Programs/msys64/usr/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_2-Windows/cppapplication_2_cygwin_try.exe
make[2]: Entering directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'
mkdir -p build/Debug/MinGW_2-Windows
rm -f "build/Debug/MinGW_2-Windows/main.o.d"
g++ -std=c++2a   -c -g -MMD -MP -MF "build/Debug/MinGW_2-Windows/main.o.d" -o build/Debug/MinGW_2-Windows/main.o main.cpp
mkdir -p dist/Debug/MinGW_2-Windows
g++ -std=c++2a    -o dist/Debug/MinGW_2-Windows/cppapplication_2_cygwin_try build/Debug/MinGW_2-Windows/main.o 
make[2]: Leaving directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'
make[1]: Leaving directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'

BUILD SUCCESSFUL (total time: 17s)

cd 'D:\Program-Workspaces\netbeans11\CppApplication_2_Cygwin_Try'
D:\Programs\msys64\usr\bin\make.exe -f Makefile CONF=Debug
"/D/Programs/msys64/usr/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'
"/D/Programs/msys64/usr/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW_2-Windows/cppapplication_2_cygwin_try.exe
make[2]: Entering directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'
make[2]: 'dist/Debug/MinGW_2-Windows/cppapplication_2_cygwin_try.exe' is up to date.
make[2]: Leaving directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'
make[1]: Leaving directory '/d/Program-Workspaces/netbeans11/CppApplication_2_Cygwin_Try'

BUILD SUCCESSFUL (total time: 3s)



                                                                                
      0 [main] cppapplication_2_cygwin_try (17884) D:\Program-Workspaces\netbean
s11\CppApplication_2_Cygwin_Try\dist\Debug\MinGW_2-Windows\cppapplication_2_cygw
in_try.exe: *** fatal error - cygheap base mismatch detected - 0x180343408/0x180
347408.                                                                         
This problem is probably due to using incompatible versions of the cygwin DLL.  
Search for cygwin1.dll using the Windows Start->Find/Search facility            
and delete all but the most recent version.  The most recent version *should*   
reside in x:\cygwin\bin, where 'x' is the drive on which you have               
installed the cygwin distribution.  Rebooting is also suggested if you          
are unable to find another cygwin DLL.                                          
                                                                                
RUN FAILED (exit value 127, total time: 1s)  

         

0 个答案:

没有答案
相关问题