visual-c++ - 什么是 .sym 文件以及如何从 Visual-C++ 使用它?

标签 visual-c++ dll debug-symbols oracle-call-interface occi

Oracle OCCI for VS2010包含以下文件:

  • oraocci11.dll(~ 500 KB)
  • oraocci11.lib(~ 800 KB)
  • oraocci11.sym(~ 546 KB)

DLL 很明显。 lib 文件 - 从它的大小来看,似乎是静态库。

但是.sym 文件是什么? Windows 上的符号文件“通常”是 .pdb 文件。它是什么?

而且,如果它是一个符号文件,那么我如何在 VC++ 中使用它?

最佳答案

我在 Oracle docs 中找到了以下片段Oracle® 调用接口(interface)程序员指南,11g 第 2 版 (11.2),... OCI Instant Client --

oci.sym, oraociei11.sym, orannzsbb11.sym ... Symbol tables

A .sym file is provided for each DLL and when present in the same location as the DLL, a stack trace with function names is generated when a failure occurs in OCI on Windows.

所以我假设这些文件被 dll 本身用来解析符号名称。我不清楚以下是什么格式以及使用什么工具生成它们,但开发过程似乎不需要它们(但应该与 DLL 一起分发)。

关于visual-c++ - 什么是 .sym 文件以及如何从 Visual-C++ 使用它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15679289/

相关文章:

c++ - VS 2012 中的可变参数模板(Visual C++ 2012 年 11 月 CTP)

c++ - 使用 C++ Builder 时 VC++ Dll 无法在 Windows XP Sp3 上运行

delphi - 程序关闭期间出现异常 "MouseTrackingTimerList.Count <> 0"

c# - 对于某些客户,无法加载 DLL 'System.Data.SQLite.dll' : The specified module could not be found.(HRESULT 异常:0x8007007E)

c++ - 静态库调用访问冲突

c++ - 在共享项目中包含代码仅在选择 x64 平台时有效

python - pycharm中导入cv2时出现ImportError : DLL load failed: The specified module could not be found.

c++ - g++ 没有在调试信息中编译

windows - 为什么不加载符号进行调试?

c++ - 信号 NaN 的用处?