On Mon, 02 Feb 2015 11:20:52 GMT, Tudor Berariu wrote:
I have a DUB project that uses mysql-d . 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... Linking... /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 , adding
"lflags": ["-L/usr/lib64/mysql"] in
dub.json solved the problem.