Hi list

I am porting a *NIX MySQL application from Linux to Windows, it uses the C
API (header files and libraries) that comes with the distribution package.
My program is already working on Windows and just have to add the last part
that is the MySQL support but have two doubts:

The Windows zip/Setup.exe package should be fine (or not?) since it has the
header files and libraries, found a reference in the MySQL forums about
making it work with Visual C++ 6, have just download Visual C++ 2008 express
and I guess it should be fine to follow the same configuration process to
setup the include header/libraries paths.

My doubt is because never have used it on windows and have these questions:

1. In Linux (and *NIX in general) I use 'mysql_config' to setup options and
directories so the application links dinamically to mysql*.so libraries, in
the case of windows just have to include the mysqlclient.lib libmysql.lib
etc. BUT... will the program be linked dinamically or statically to MySQL
client libraries? What if I need them to be linked statically to the
program?

2. If it is a simple MySQL client and if it is possible to statically link
the client libraries, do MySQL need  to be installed to allow the program to
work? or it is enough if everything is statically linked inside the program
and it is not required to install MySQL on every machine where the program
runs?

3. If it is really a must to have installed MySQL on every windows computer,
is it enough having it installed or should I compile the program in every
station?

4. In the case of question 3, if MySQL is upgraded in the future, do the
program requires to be recompiled with the new version?

I still don't make the installation, just download MySQL and asked you
before doing anything...

Thanks for any help,
Miguel

Reply via email to