无法使用 libpqxx 和 xcode4 (C++) 进行编译
can't compile with libpqxx and xcode4 (c++)
我试图在我的c++项目中使用libpqxx(3.1),以便连接到我的postgresql数据库。我正在使用最新版本的xcode (xcode 4)。
我正确地做了安装。/configure, make and 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)