RE: Problem with mysql++, Aborted (core dumped)

2001-04-16 Thread Sander Pilon

"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




Re: Problem with mysql++, Aborted (core dumped)

2001-04-16 Thread Sinisa Milivojevic



Hi!

MySQL++ can not be used with g++ 2.96 as it is very unstable when it
comes to high C++.


Regards,

Sinisa

    __ _   _  ___ ==  MySQL AB
 /*/\*\/\*\   /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/   \*\_   |*|   |*||*| mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*| Larnaca, Cyprus
  /*/ /*/  /*/\*\_/*/ \*\_/*/ |*|
  /*/^^^\*\^^^
 /*/ \*\Developers Team

-
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




Re: Problem with mysql++, Aborted (core dumped)

2001-04-16 Thread Sinisa Milivojevic

Luis E. Cruz Campos writes:
 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]
 


Hi!

You will have to use g++ 2.95.2 as 2.96 has a very unstable C++
compiler. And even less stable STL library.


Regards,

Sinisa

    __ _   _  ___ ==  MySQL AB
 /*/\*\/\*\   /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/   \*\_   |*|   |*||*| mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*| Larnaca, Cyprus
  /*/ /*/  /*/\*\_/*/ \*\_/*/ |*|
  /*/^^^\*\^^^
 /*/ \*\Developers Team



-
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




Re: Problem with mysql++, Aborted (core dumped)

2001-04-15 Thread Andrei Cojocaru

I suggest you try the mySQL C API and see if that works first.

-Andrei Cojocaru

From: Luis E. Cruz Campos [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Problem with mysql++, Aborted (core dumped)
Date: Mon, 16 Apr 2001 12:17:40 -0400
MIME-Version: 1.0
Received: from [192.58.197.162] by hotmail.com (3.2) with ESMTP id 
MHotMailBCA3BCD600CA40043191C03AC5A20E370; Sun Apr 15 21:15:19 2001
Received: (qmail 19544 invoked by uid 7797); 16 Apr 2001 04:11:13 -
Received: (qmail 19519 invoked from network); 16 Apr 2001 04:11:12 -
From mysql-return-71581-acojocaru Sun Apr 15 21:16:36 2001
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 
(http://www.ezmlm.org)
List-ID: mysql.mysql.com
Precedence: bulk
List-Help: mailto:[EMAIL PROTECTED]
List-Unsubscribe: 
mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
X-Mailer: KMail [version 1.2]
Message-Id: [EMAIL PROTECTED]

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


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
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




Re: Problem with mysql++, Aborted (core dumped)

2001-04-15 Thread Mr.Y.SHIVAKANT


-Original Message-
From: Luis E. Cruz Campos [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]
Date: Monday, April 16, 2001 9:37 AM
Subject: Problem with mysql++, Aborted (core dumped)


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]
Where do you get this lib sqlplus.hh i dont know and what is cchar.


YOUR SINCERELY
Shivakanth


-
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