尝试在Visual Studio 2012中编译时符号加载错误

时间:2013-01-19 23:15:48

标签: c++ debugging visual-studio-2012 compiler-errors

我正在尝试使用Visual Studio 2012编译一个简单的Hello World C ++程序,并且我收到了一些与未加载符号相关的错误。

'Hello World.exe' (Win32): Loaded 'C:\Users\Raphael\Documents\Visual Studio 2012\Projects\Hello World\Debug\Hello World.exe'. Symbols loaded.
'Hello World.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'Hello World.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'Hello World.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'Hello World.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr110d.dll'. Symbols loaded.
'Hello World.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Symbols loaded.
'Hello World.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll'
The program '[3668] Hello World.exe' has exited with code 0 (0x0).

我已经检查了本地硬盘上的位置,并且每个.dll文件都驻留在该文件夹中,所以我不确定为什么它无法加载它们。

1 个答案:

答案 0 :(得分:0)

这里没有任何内容与符号被加载有关:

'Hello World.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.

Visual Studio将在调试器下运行您的程序。它加载调试符号......

'Hello World.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\apphelp.dll'
The program '[3668] Hello World.exe' has exited with code 0 (0x0).

...成功启动程序(这意味着它已成功编译),程序以代码0退出。