不能用libpqxx和xcode4(c ++)编译

| 我试图在我的C ++项目中使用libpqxx(3.1)以便连接到我的postgresql数据库。我正在使用最新版本的xcode(xcode 4)。 我正确进行了安装(./configure、make和make install),并将库添加到了标题搜索路径和库搜索路径中。 标头搜索路径:/ usr / local / include 库搜索路径:/ usr / local / lib 然后,
#include <pqxx/pqxx>
而且我在pqxx / cursor.hxx文件中得到以下错误:
  stateless_cursor(
    transaction_base &trans,
    const PGSTD::string adopted_cursor) :
    **m_cur(trans, adopted_cursor, up, op)**
  {
    // Put cursor in known position
    m_cur.move(cursor_base::backward_all());
  }
没有用于\'internal :: sql_cursor \'初始化的匹配构造函数 我应该编辑该文件吗? 谢谢你的帮助。     
已邀请:
最后,我编辑了库并进行了更改:
 m_cur(trans, adopted_cursor, up, op)
至 :
m_cur(trans, adopted_cursor, op)
匹配构造函数签名。     

要回复问题请先登录注册