List:MySQL ODBC« Previous MessageNext Message »
From:Peter Harvey Date:April 22 1999 6:02pm
Subject:Re: undefined symbol: mysql_init
View as plain text  
Petr Stehlik wrote:

> Hi,
>
> I have compiled latest MyODBC on Debian Linux. After configuring
> ~/.iodbc.ini I started SAMPLES/odbctool and got:
>
> proxy:~/myodbc/iodbc-2.50.22a/SAMPLES# ./odbctool -c -q -d mysql "SELECT *
> FROM
> kolik"
> _iodbcdm_driverload(/root/myodbc/mysql/lib/libmyodbc_mysql.so, 0x8079448)
>
> SQLAllocEnv ( ... )
> SQL_SUCCESS
>
> SQLAllocConnect ( ... )
> SQL_SUCCESS
>
> SQLDriverConnect ( ... )
> ./odbctool: error in loading shared libraries
> /root/myodbc/mysql/lib/libmyodbc_mysql.so: undefined symbol: mysql_init
>
> Could you please tell me what I did wrong? Why is  the mysql_init symbol not
> defined?
>
>

Petr

This is just a guess (lack of details) but you may want to try adding

-umysql_init

to your linking. This will force the inclusion of static code when building a
dynamic lib.

Peter Harvey



Thread
undefined symbol: mysql_initPetr Stehlik22 Apr
  • Re: undefined symbol: mysql_initPeter Harvey22 Apr