You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PostgreSQL 14编译pgAudit生成pgaudit.dll时遇多错误求助

PostgreSQL 14编译pgAudit生成pgaudit.dll报错求助

我正按照「针对PostgreSQL二进制安装包编译pgAudit」的步骤,在PostgreSQL 14中启用pgAudit,但生成pgaudit.dll时遇到多个错误。

已执行的操作步骤

  • 在D:\Program Files\PostgreSQL路径下安装PostgreSQL 14
  • 在C:\Program Files\Microsoft Visual Studio\2017路径下安装Microsoft Visual Studio 2017
  • 下载pgAudit-16.0版本
  • 创建Build文件夹
  • 将pgaudit.c复制到Build文件夹
  • 在Build文件夹中创建pgaudit.def文件
  • 在Build文件夹中创建compile_response_file.txt文件
  • 在Build文件夹中创建link_response_file.txt文件

使用的编译命令

cl /c @.\compile_response_file.txt .\pgaudit.c
link.exe @.\link_response_file.txt /OUT:".\pgaudit.dll" .\pgaudit.obj

编译过程中出现多个未定义标识符类错误,Build文件夹包含上述所有相关文件。


内容的提问来源于stack exchange,提问作者Puru

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 15:44:53