-2
我试图连接到名为“galaxydatabase”的postgresql数据库,并遇到未处理的异常。 源代码:使用wt C++库连接到postgresql数据库时出现异常?
#include <Wt/Dbo/Dbo>
#include <Wt/Dbo/backend/Postgres>
namespace dbo = Wt::Dbo;
void run()
{
dbo::backend::Postgres po;
po.connect("galaxydatabase");
// or
//dbo::backend::Postgres po("galaxydatabase"); // the same exception???
}
int main(int argc, char **argv)
{
run();
}
您收到的确切例外是哪一个? –