4 messages in com.mysql.lists.plusplusRe: segfault
FromSent OnAttachments
Petar Maymounkov10 Jan 2003 12:47 
Ajit Chourasia10 Jan 2003 18:33 
kate11 Jan 2003 04:34 
Eric Martel11 Jan 2003 07:04 
Subject:Re: segfault
From:Ajit Chourasia (aji@qualcomm.com)
Date:01/10/2003 06:33:17 PM
List:com.mysql.lists.plusplus

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