gpt4 book ai didi

c++ - 每当我调试时出现几个错误

转载 作者:行者123 更新时间:2023-12-02 10:57:33 25 4
gpt4 key购买 nike

我目前正在参加C++编程基础知识类(class)。我已设置Visual Studio 2017,正在尝试从教科书中运行示例代码。每当我尝试调试任何东西(包括示例“hello world”代码)时,都会出现这些错误。

我尝试过更改项目的位置,并三遍检查了代码。

#include "pch.h"
#include <iostream>

int main()
{
std::cout << "Hello World!\n";
}

应该输出“hello world”,但是我却得到了这些错误。
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Users\Asher\source\repos\ConsoleApplication6\Debug\ConsoleApplication6.exe'. Symbols loaded.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140d.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140d.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ucrtbased.dll'
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbased.dll'. Cannot find or open the PDB file.
The thread 0x358c has exited with code 0 (0x0).
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file.
'ConsoleApplication6.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
The thread 0x31c8 has exited with code 0 (0x0).
The thread 0xca8 has exited with code 0 (0x0).
The thread 0x27a4 has exited with code 0 (0x0).
The program '[20724] ConsoleApplication6.exe' has exited with code 0 (0x0).

最佳答案

PDB文件是Visual Studio使用的调试信息文件。这些是系统DLL,您没有调试符号。转到“工具”->“选项”->“调试”->“符号”,然后选中“Microsoft符号服务器”复选框,Visual Studio将自动下载PDB文件。

enter image description here

关于c++ - 每当我调试时出现几个错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58207061/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com