Hello

> #ifdef USE_OLD_FUNCTIONS
> MYSQL *         STDCALL mysql_connect(MYSQL *mysql, const char *host,
>                                        const char *user, const char
> *passwd); int             STDCALL mysql_create_db(MYSQL *mysql, const char
> *DB); int             STDCALL mysql_drop_db(MYSQL *mysql, const char *DB);
> #define  mysql_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT)
> #endif

Tried last night but did not work... it compiles fine, but at the link time 
mysql_create_db and mysql_drop_db symbols are undefined :(

I re-read the API documentation (the latest) and found the functions are 
deprecated, so replaced them by mysql_real_query'es.

All is working now, but found a little "problem" with the original mysql 
mysql.com distribution, includes and libraries are placed in non-standard 
directories. Reading the documentation found that I had to use -L and -I but 
the problem is that am working with qmake (Qt) and...

- if there's a mysql modified distribution (for example redhat or slackware) 
that changes the default directories for libs/includes qmake works fine 
without -L and -I 'cos they are placed in standard system directories

- if the original unmodified distribution installed it is a need to use -L and 
-I to generate the makefile but need to include the parameters by hand since 
mysql_config can't be run by qmake while generating the Makefile. It works 
fine by now, but don't know with different (older/future) versions of mysql 
that may require more or different libs

the question is: is there some way to use .../mysql/lib without moving the 
libs to /usr/local/lib or something similar? tried to add the path to 
/etc/ld.so.conf (tried although they are .a) and LD_LIBRARY_PATH environment 
variable, but library is not found. Am going to try to symlink .../mysql/lib 
to /usr/local/lib/mysql hoping that it could work, since I don't want to have 
different makefiles depending on standard/non-standard mysql distribution...

Regards.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to