2 messages in com.mysql.lists.plusplusSegmentation fault
FromSent OnAttachments
Michael Ott10 Jul 2002 13:41 
Michael Ott12 Jul 2002 10:00 
Subject:Segmentation fault
From:Michael Ott (Zoln@NEFkom.net)
Date:07/10/2002 01:41:00 PM
List:com.mysql.lists.plusplus

Hello MySQL++-User!

I have a problem using mysql++.

I try the tutorial-examples and get the following output after starting the application: Segmentation fault

Here my scripting:

#include <iostream.h> #include <iomanip.h> #include <sqlplus.hh>

int main() { Connection con("test", "server.zolnott", "root", "password");

Query query = con.query();

query << "select * from simpletable";

Result res = query.store();

cout << "Query: " << query.preview() << endl;

cout << "Records Found: " << res.size() << endl << endl;

Row row; cout.setf(ios::left); cout << setw(4) << "Id" << setw(6) << "Name" << "Address" << endl << endl;

Result::iterator i; for (i = res.begin(); i != res.end(); i++) { row = *i; cout.setf(ios::left); cout << setw(4) << row[0] << "" << setw(6) << row[1] << "" << row[2] << endl; } return 0; }

What's going wrong?

Using RH73 MySQLMax-4.0.1 mysql++-1.7.8

CU

Michael