Eureka!

-rdynamic is considered an invalid option for gcc ( a quick browse through
newsgroup history learns that it *probably* is no longer supported as of
gcc-2.95.3, since it's use was never very clear nor documented)

however, Sinisa's post got me to try this:
ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so /usr/lib/mysqlclient.so
add -lmysqlclient to the gcc command line

and what do you know.... it works!
(there's probably a better way to do this, using the proper linker options,
instead of using ln -s. Setting LD_LIBRARY_PATH does not seem to help)


Thx a 10e6

Tim.

> -----Original Message-----
> From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 20, 2001 17:14
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: create function: fails with error 1126
>
>
[snip]
> >
> > I must be overlooking something. Where is default-charset_info defined
> > anyway? Is it part of mysql or is it some general library?
> >
> > I exported
> LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql before
> > running safe_mysqld.
> >
> > Any insights are welcome...
> >
> > Tim
>
> The above symbol is from MySQL's C API, i.e. libmysqlclient library.
>
> Link  your library with -shared -rdynamic and see what you get.
>
>
> --
> Regards,
>    __  ___     ___ ____  __
>   /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
>  / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
> /_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
>        <___/   www.mysql.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

Reply via email to