Try using ur actual hostname instead of localhost.
Ajit
At 03:48 PM 1/10/2003 -0500, Petar Maymounkov wrote:
Hi,
Can you please tell me the following simple code
segfaults:
#include <iostream>
#include <iomanip>
#include <vector>
#include <sqlplus.hh>
#include <custom.hh>
int main() {
try {
cout << "my test" << endl;
Connection con("test", "localhost:mysql", "root", NULL, true);
} catch (BadQuery er) {
cerr << "Error: " << er.error << endl;
cout << "yes" << endl;
return -1;
}
return 0;
}
====
This program terminates with the following output:
my test
Error: Unknown MySQL Server Host 'localhost:mysql' (2)
yes
Segmentation fault (core dumped)
Thank you,
Petar