2 messages in com.mysql.lists.plusplusSegmentation fault| From | Sent On | Attachments |
|---|---|---|
| Michael Ott | 10 Jul 2002 13:41 | |
| Michael Ott | 12 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
-- /---------------------------------------------------------------\ | Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg | | e-mail: Zoln...@NEFkom.net, Tel. +49 9 11 41 88 576 | \---------------------------------------------------------------/




