用于 Visual C 的 GSL 2010年
考虑到 Brian Glandman 提出的构建项目(http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php),我尝试使用 VC2010 的 GSL 1.14。 构建库后,我尝试使用函数 gsl_sf_bessel_J0 运行一个简单的示例。参见下面的代码:
include
include
int main(){
double x;
double y;
do
{
printf("\nInforme o valor de x: ");
scanf_s("%lf", &x);
y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
} while (x!=0);
return 0; 代码可以编译,
但会出现以下消息。即使如此,代码仍能正确计算该函数。我想了解这些消息,主要是关于它们在最复杂的代码中产生一些关键问题的可能性。
“test_3.exe”:已加载“C:\Documents and Settings\Francisco J. Profito\Meus documentos\Visual Studio 2010\Projects\test_1\Debug\test_3.exe”,已加载符号。 “test_3.exe”:已加载“C:\WINDOWS\system32\ntdll.dll”,无法找到或打开 PDB 文件 “test_3.exe”:已加载“C:\WINDOWS\system32\kernel32.dll”,无法找到或打开 PDB 文件 “test_3.exe”:已加载“C:\WINDOWS\system32\msvcr100d.dll”,已加载符号。 “test_3.exe”:已加载“C:\WINDOWS\system32\shimeng.dll”,无法找到或打开 PDB 文件 “test_3.exe”:卸载“C:\WINDOWS\system32\shimeng.dll” 线程“Win32 Thread”(0x1644)已退出,代码为-1073741510(0xc000013a)。 程序“[5508] test_3.exe:Native”已退出,代码为-1073741510 (0xc000013a)。
1>------ 全部重建开始:项目:test_3,配置:调试 Win32 ------ 1>cl :命令行警告 D9007:'/Gm' 需要 '/Zi 或 /ZI';选项被忽略 1>测试_3.cpp 1>LINK:警告 LNK4098:defaultlib 'LIBCMTD' 与其他库的使用冲突;使用 /NODEFAULTLIB:库 1>LINK:警告 LNK4098:defaultlib 'LIBCMTD' 与其他库的使用冲突;使用 /NODEFAULTLIB:库 1> test_3.vcxproj-> C:\Documents and Settings\Francisco J. Profito\Meus documentos\Visual Studio 2010\Projects\test_1\Debug\test_3.exe ========== 全部重建:1 成功,0 失败,0 跳过 ==========
I'm trying to use the GSL 1.14 for VC2010 considering the build project proposed by Brian Glandman's (http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php).
After building libraries I tried to run a simple example using the function gsl_sf_bessel_J0. See code below:
include
include
int main(){
double x;
double y;
do
{
printf("\nInforme o valor de x: ");
scanf_s("%lf", &x);
y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
} while (x!=0);
return 0;
}
The code compiles but the following messages appears. Even so the code properly calculates the function. I would like to know about these messages, mainly concerning with the possibility them generate some critical problems in most complicate codes.
'test_3.exe': Loaded 'C:\Documents and Settings\Francisco J. Profito\Meus documentos\Visual Studio 2010\Projects\test_1\Debug\test_3.exe', Symbols loaded.
'test_3.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'test_3.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'test_3.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
'test_3.exe': Loaded 'C:\WINDOWS\system32\shimeng.dll', Cannot find or open the PDB file
'test_3.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'
The thread 'Win32 Thread' (0x1644) has exited with code -1073741510 (0xc000013a).
The program '[5508] test_3.exe: Native' has exited with code -1073741510 (0xc000013a).
1>------ Rebuild All started: Project: test_3, Configuration: Debug Win32 ------
1>cl : Command line warning D9007: '/Gm' requires '/Zi or /ZI'; option ignored
1> test_3.cpp
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1> test_3.vcxproj -> C:\Documents and Settings\Francisco J. Profito\Meus documentos\Visual Studio 2010\Projects\test_1\Debug\test_3.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论