"Aborted" in a C++ program usually means an exception was thrown that
you didn’t catch. In this case, the connection constructor could have
thrown something. 

try
{
        Connection MySQL(db, host, user, pass);         
}
catch(...)
{
        cout << "Connection failed." << endl;
}

Check the excellent online class/function reference for more details
about what exceptions can be thrown.


> I am trying to prove a small program of test, but when trying 
> to execute it 
> this always it throws "Aborted (core dumped)", this happens 
> at the time of 
> making the connection:
> 
> It is the program:
> 
> #include <iostream.h>
> #include <iomanip.h>
> #include "sqlplus.hh"
> 
> cchar *user="sqluser";
> cchar *pass="sqluser";
> cchar *host="Localhost";
> cchar *db="test";
> 
> main () {
>       cout << "Conectando...\n";
>       Connection MySQL(db, host, user, pass);
>       cout << "Ok.";
>       return 0;
> }
> 
> also i have proven with "Connection MySQL(db)" and 
> "Connection MySQL(); 
> MySQL.connect();", this like "root" and "common user"
> 
> i am using:
> 
> redhat 7.0
> gcc 2.96
> mysql 3.23.36
> mysql++ 1.7.8
> 
> Thanks for your help !!! and sorry by my english !!!
>  
> -- 
> Luis E. Cruz Campos
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail 
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to