On Mon, 02 Feb 2015 11:20:52 GMT, Tudor Berariu wrote:

I have a DUB project that uses mysql-d [1]. When DUB tries to build mysql-d, the linker reports an error:

$ dub
Target mysql-d 0.3.1 is up to date. Use --force to rebuild.
Building dataexp ~master configuration "application", build type debug.
Compiling using dmd...
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
--- errorlevel 1

The solution would be to compile with -L/usr/lib64/mysql. Is this possible?

The answer is in the documentation [1], adding "lflags": ["-L/usr/lib64/mysql"] in dub.json solved the problem.

[1] http://code.dlang.org/package-format#build-settings