Netbeans 8.0.2返回“在启动程序退出时,代码为0xc0000135". [英] Netbeans 8.0.2 returns "During startup program exited with code 0xc0000135"

查看:165
本文介绍了Netbeans 8.0.2返回“在启动程序退出时,代码为0xc0000135".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

赢7 Netbeans 8.0.2 西格温 gcc 4.8.3 /usr/lib/libgsl.dll.a /usr/lib/libgslcblas.dll.a

Win 7 Netbeans 8.0.2 cygwin gcc 4.8.3 /usr/lib/libgsl.dll.a /usr/lib/libgslcblas.dll.a

在调试器中,我因上述错误而崩溃.没有调试器,加载共享库时发生错误,崩溃:?:无法打开共享对象文件:没有这样的文件或目录"

In the debugger I crash with the error above. Without the debugger I crash with " error while loading shared libraries: ?: cannot open shared object file: No such file or directory"

我已经对此进行了研究,我认为这是链接到某些外部库的失败.我唯一拥有的外部库是Gnu科学库(libgsl.dll.a).通过阅读其他问题,我在Windows%PATH%变量和bash $ PATH中都放置了指向库位置的链接.在/bin中有一个/bin/cyggsl-0.dll和/bin/cyggslcblas-0.dll,我在%PATH中也引用了该目录.

I've researched this and I think that this is a failure to link to some external library. the only external library I have is for the Gnu Scientific Library (libgsl.dll.a). From reading other questions I have put a link to the location of library in both my Windows %PATH% variable and my bash $PATH. There is a /bin/cyggsl-0.dll and /bin/cyggslcblas-0.dll in /bin and I have put a reference to this directory in %PATH also.

注释掉对gsl Netbeans的引用,它将编译并正确运行.

Commenting out the reference to the gsl Netbeans compiles and runs correctly.

如何让Netbeans查找gsl DLL?假设gsl链接到一个库,但找不到该库,我如何找出gsl在Netbeans中想要什么? gsl库是C库(从Fortran翻译而来),因此可能会有一些废话,但我很困惑.

How can I get Netbeans to find the gsl DLL? Assuming gsl links to a library and that this library is not found, how can I find out what gsl wants in Netbeans? The gsl library is a C library (translated from Fortran), so there might be some residual nonsense going on, but I'm stumped.

有问题的简单程序

# include <gsl/gsl_matrix.h>

int main() {
   gsl_matrix * M = gsl_matrix_alloc(30, 30);
   return 0;
}

Windows%PATH%:

Windows %PATH%:

C:\ProgramData\Oracle\Java\javapath;
C:\Program Files (x86)\AMD APP\bin\x86_64;
C:\Program Files (x86)\AMD APP\bin\x86;
C:\Program Files\Common Files\Microsoft Shared\Windows Live;
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;
%SystemRoot%\system32;
%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;
c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;
C:\Program Files (x86)\Windows Live\Shared;
C:\Program Files (x86)\Common Files\HP\Digital Imaging\bin;
C:\Program Files (x86)\HP\Digital Imaging\bin\;
C:\Program Files (x86)\HP\Digital Imaging\bin\Qt\Qt 4.3.3;
C:\Program Files\doxygen\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Graphviz2.30\bin;%systemroot%\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\QuickTime\QTSystem\;
C:\cygwin64\usr\lib
C:\bin

bash $ PATH

bash $PATH

/usr/local/bin
/usr/lib/lapack
/usr/lib
/usr/bin
/Windows/System32/WindowsPowerShell/v1.0
/Windows/System32/Wbem
/Windows/system32
/Windows
/ProgramFiles86/Windows Live/Shared
/ProgramFiles86/QuickTime/QTSystem
/ProgramFiles86/Microsoft SQL Server/90/Tools/binn
/ProgramFiles86/Microsoft SQL Server/80/Tools/Binn
/ProgramFiles86/HP/Digital Imaging/bin/Qt/Qt 4.3.3
/ProgramFiles86/HP/Digital Imaging/bin
/ProgramFiles86/Graphviz2.30/bin
/ProgramFiles86/Common Files/Microsoft Shared/Windows Live
/ProgramFiles86/Common Files/HP/Digital Imaging/bin
/ProgramFiles86/ATI Technologies/ATI.ACE/Core-Static
/ProgramFiles86/AMD APP/bin/x86_64
/ProgramFiles86/AMD APP/bin/x86
/ProgramFiles/Java/jdk1.7.0_45/bin/
/ProgramFiles/doxygen/bin
/ProgramFiles/Common Files/Microsoft Shared/Windows Live
/c/ProgramData/Oracle/Java/javapath

推荐答案

该简单程序是使用netbeans(运行并调试),bash和DOS shell运行的.打击工作. DOS外壳程序提供了加载程序无法找到的dll的名称(netbeans返回了?",这绝对没有用).

The simple program was run with netbeans (run & debug), bash and a DOS shell. bash worked. The DOS shell provided the name of the dll that the loader was unable to find (netbeans returned '?' which is decidedly not useful).

基于DOS诊断消息,我发现Windows%PATH%和cygwin $ PATH环境之间存在差异(/usr/lib/lapack在$ PATH中,但不在%PATH%中.修复路径可解决此问题.

Based on the DOS diagnostic message I found a difference between the Windows %PATH% and the cygwin $PATH environment (/usr/lib/lapack was in $PATH but not in %PATH%. Fixing the path fixed the problem.

对不起,浪费您的时间.

Sorry to waste your time folks.

这篇关于Netbeans 8.0.2返回“在启动程序退出时,代码为0xc0000135".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆