mfsql Library - Version: 1.0.6 - usage

The easiest way to use mfsql is to use the pkg-config program. Chances are this is already on your system. As an example you have a file 'sqlprogram.cpp' that you wish to compile into a program
Please note anywhere is written <1.0.6> [release version of the library] remove the < > symbols
Please note that the [ ` ] (unicode: &#x0060) character in this line is not a [ ' ] (unicode: &#x0027) character. Just run at the command line
g++ sqlprogram.cpp -o sqlprogram `pkg-config --libs --cflags mfsql-<1.0.6>`
This compiles the program sqlprogram

One caveat this pre-supposes that the PKG_CONFIG_PATH environment variable is set correctly. If not set it at the command line.
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
g++ sqlprogram.cpp -o sqlprogram `pkg-config --libs --cflags mfsql-<1.0.6>`
/usr/local/lib/pkgconfig being the path to the pkg-config directory where mfsql's pkg-config file is.

Alternatively if you do not have the pkg-config program
g++ sqlprogram.cpp -o sqlprogram -I/usr/local/include/mfsql-<1.0.6> -L/usr/local/lib -lmfsql-<1.0.6>
If you wish to link statically
g++ sqlprogram.cpp -o sqlprogram -I/usr/local/include/mfsql-<1.0.6> /usr/local/lib/libmfsql.a