开发者

can't compile with libpqxx and xcode4 (c++)

I am trying to use libpqxx (3.1) in my C++ project in order to con开发者_如何学JAVAnect to my postgresql database. I am using the lastest version of xcode (xcode 4).

I correctly made the install (./configure, make and make install) and added the library in my header search path and library search path.

header search path : /usr/local/include library search path : /usr/local/lib

Then,

#include <pqxx/pqxx>

And i get the following error in the pqxx/cursor.hxx file:

  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());
  }

No matching constructor for initialization for 'internal::sql_cursor'

Should I edit this file ?

Thanks for your help.


Finally, I edited the library and changed:

 m_cur(trans, adopted_cursor, up, op)

to :

m_cur(trans, adopted_cursor, op)

to match the constructor signature.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜