[英]Cannot find or open the PDB file Visual studio 2012
我正在嘗試從C ++運行jar文件
我寫了這段代碼:
#include "stdafx.h"
#include <iostream>
#include <strsafe.h>
#include <stdexcpt.h>
#include "jni.h"
#include <conio.h>
#include <Windows.h>
using namespace std;
#pragma comment (lib,"C:\\Users\\Hilla\\Documents\\Visual Studio 2012\\helloworld\\helloworld\\jvm.lib")
int main()
{
JavaVM *jvm;
JNIEnv *env;
JavaVMInitArgs vm_args;
JavaVMOption options[3];
options[0].optionString = "-Djava.compiler=NONE";
options[1].optionString="-Djava.class.path=C:\\Users\\Hilla\\Documents\\Visual
Studio 2012\\helloworld\\Debug\\hello.jar";
options[2].optionString="verbose.jni";
vm_args.version=JNI_VERSION_1_6;
vm_args.nOptions=3;
vm_args.options=options;
vm_args.ignoreUnrecognized=0;
int ret=JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
printf("hilla");
}
我使用x64編譯器。 我將JVM lim添加到系統路徑。
而且仍然給我這個錯誤:
'helloworld.exe'(Win32):已加載'C:\\ Users \\ Hilla \\ Documents \\ Visual Studio 2012 \\ helloworld \\ x64 \\ Debug \\ helloworld.exe'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ ntdll.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ kernel32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ KernelBase.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Program Files \\ Java \\ jdk1.7.0_45 \\ jre \\ bin \\ server \\ jvm.dll'。 找不到或打開PDB文件。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ msvcp110d.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ msvcr110d.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ user32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ advapi32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ wsock32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ winmm.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ psapi.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ msvcr100.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ gdi32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ msvcrt.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ sechost.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ rpcrt4.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ ws2_32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ winmmbase.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ nsi.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ cfgmgr32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ devobj.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ imm32.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ msctf.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ nvinitx.dll'。 找不到或打開PDB文件。
'helloworld.exe'(Win32):已加載'C:\\ Program Files \\ NVIDIA Corporation \\ coprocmanager \\ detoured.dll'。 找不到或打開PDB文件。 'helloworld.exe'(Win32):已加載'C:\\ Program Files \\ NVIDIA Corporation \\ coprocmanager \\ Nvd3d9wrapx.dll。 找不到或打開PDB文件。
'helloworld.exe'(Win32):已加載'C:\\ Windows \\ System32 \\ setupapi.dll'。 符號已加載。
'helloworld.exe'(Win32):已加載'C:\\ Program Files \\ NVIDIA Corporation \\ coprocmanager \\ nvdxgiwrapx.dll。 找不到或打開PDB文件。程序“ [7688] helloworld.exe”已退出,代碼為0(0x0)。
我怎樣才能解決這個問題?
PDB
是Visual Studio使用的調試信息文件。 這些是系統DLL ,您沒有調試符號。 轉到“ Tools->Options->Debugging->Symbols
然后選中“ Microsoft Symbol Servers
復選框,Visual Studio將自動下載PDB。
請在此處閱讀針對VS 2010發布的類似問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.