赢 7 网 bean 8.0.2 赛格文 海湾合作委员会 4.8.3 /usr/lib/libgsl.dll.a /usr/lib/libgslcblas.dll.a
在调试器中,我因上述错误而崩溃。如果没有调试器,我会崩溃并显示“加载共享库时出错:?:无法打开共享对象文件:没有这样的文件或目录”
我对此进行了研究,我认为这是无法链接到某些外部库。我拥有的唯一外部库是 Gnu 科学库 (libgsl.dll.a)。通过阅读其他问题,我在我的 Windows %PATH% 变量和我的 bash $PATH 中都添加了指向库位置的链接。/bin 中有一个/bin/cyggsl-0.dll 和/bin/cyggslcblas-0.dll,我也在 %PATH 中引用了这个目录。
注释掉对 gsl Netbeans 的引用可以正确编译和运行。
如何让 Netbeans 找到 gsl DLL?假设 gsl 链接到一个库并且没有找到这个库,我如何才能找出 gsl 在 Netbeans 中想要什么? gsl 库是一个 C 库(从 Fortran 翻译而来),因此可能还有一些废话,但我很难过。
有问题的简单程序
# include <gsl/gsl_matrix.h>
int main() {
gsl_matrix * M = gsl_matrix_alloc(30, 30);
return 0;
}
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
重击 $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 shell 提供了加载程序无法找到的 dll 的名称(netbeans 返回“?”,这显然没有用)。
根据 DOS 诊断消息,我发现 Windows %PATH% 和 cygwin $PATH 环境之间存在差异(/usr/lib/lapack 在 $PATH 中,但不在 %PATH 中。修复路径解决了问题。
对不起,浪费你们的时间。
关于c++ - Netbeans 8.0.2 返回 "During startup program exited with code 0xc0000135",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27463115/