I encountered a few problems with the genuine 1.7.8-1 binary RPM for
mysql++.

- If I compile:
    Connection con("temp","localhost","root","temp",3306,0,60,1,"",0);
  The linker complains: undefined reference to `MysqlConnection::MysqlConnection(char 
const *, char const *, char const *, char const *, unsigned int, char, unsigned int, 
bool, char const *, unsigned int)'

  -> It seems the constructor is in the header, but not in the lib.

- If I choose another constructor (like Connection con("temp")), I get
a segfault:

406         result = *my_free_list;
Current language:  auto; currently c++
(gdb) where
#0  mysql_ti_sql_type_info_lookup::mysql_ti_sql_type_info_lookup (this=0x40089e6
0, types=0x40089e80, size=62) at /usr/include/g++-2/stl_alloc.h:406
#1  0x40040356 in global constructors keyed to 
mysql_ti_sql_type_info_lookup::mysql_ti_sql_type_info_lookup () at type_info.cc:82
#2  0x4005ae44 in __do_global_ctors_aux () at null1.hh:16
#3  0x400342fe in ?? () at /usr/include/g++-2/std/bastring.cc:177 from 
/usr/lib/libsqlplus.so.1


However, if I compile it myself from the tarball, everything works fine...
(My compiler is gcc-2.95.2)


Jerome.


---------------------------------------------------------------------
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