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