在 RHEL 8 上,使用 Postgres 12。
当我尝试运行使用 log4cxx 和 ODBCAppender 将一些语句写入 Postgres DB 的 C++ 应用程序时,我收到以下错误消息:
log4cxx: Can not activate ODBCAppender unless compiled with ODBC support.
在 C++ 应用程序中调用以下行时会出现上述错误消息:
PropertyConfigurator::configure(homedir + "/.myapp_config/myapp_log_config");
我需要做什么才能编译支持 ODBC 的 C++ 应用程序?