9 messages in com.mysql.lists.plusplusRe: Core dump with 1.7.9 and MySQL 4....
FromSent OnAttachments
Ben Clewett23 May 2003 02:15 
Ben Clewett23 May 2003 05:22 
Warren Young28 May 2003 08:59 
Sinisa Milivojevic29 May 2003 04:31 
Ben Clewett29 May 2003 07:26 
Sinisa Milivojevic30 May 2003 04:35 
Ben Clewett30 May 2003 05:04 
Warren Young30 May 2003 17:49 
Sinisa Milivojevic31 May 2003 05:02 
Subject:Re: Core dump with 1.7.9 and MySQL 4.0.13 on Linux
From:Ben Clewett (B.Cl@roadrunner.uk.com)
Date:05/30/2003 05:04:35 AM
List:com.mysql.lists.plusplus

Sinisa Milivojevic wrote:

Are which two interchangeable ???

Shared lib and static one ??

If you linked with one, you can not link with a second one.

Thanks I understand. Actually that makes sence, as the static is bound into the executable, I belive...

connection.cc: In method `class string MysqlConnection::info()': connection.cc:112: initialization to `char *' from `const char *' discards qualifiers

The above is a warning, not the error. Compilation should continue.

Also, we do not get such errors at all.

What compiler are you using ??

gcc version 2.95.3 on SuSE Linux 8.0 i386 with libs from mysql-max 4.0.13.

I have no idea why my gcc treats this warning as an error. But I do see your point.

I have changed the 'offending' line in connection.cc from:

char *i = mysql_info(&mysql);

To:

char *i = (char *)mysql_info(&mysql);

And I get a successfull compalation! :)

What's more, I don't get a core-dump when running 'simple1', or my own code!!! :)

So all because I has old rubbish in /usr/include/mysql...

Many thanks, and sorry for being a pain!

Ben