From a16f9ac41f3d2bcfd65120765a9657530e11c059 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 27 Jul 2022 22:26:36 +0300 Subject: [PATCH] mysql: include workaround for windows programs that just exit, when the libmysql.dll is not found, into vlib/mysql/README.md --- vlib/mysql/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vlib/mysql/README.md b/vlib/mysql/README.md index 5ff3d1a3d..dec029fb8 100644 --- a/vlib/mysql/README.md +++ b/vlib/mysql/README.md @@ -1,7 +1,16 @@ For Linux, you need to install `MySQL development` package and `pkg-config`. + For Windows, install [the installer](https://dev.mysql.com/downloads/installer/) , then copy the `include` and `lib` folders to `\thirdparty\mysql`. +Note: if you encounter weird errors (your program just exits right away, without +printing any messages, even though you have `println('hi')` statements in your +`fn main()`), when trying to run a program that does `import mysql` on windows, you +may need to copy the .dll file: `thirdparty/mysql/lib/libmysql.dll` , into the folder +of the executable too (it should be right next to the .exe file). +This is a temporary workaround, until we have a more permanent solution, or at least +more user friendly errors for that situation. + ## Basic Usage ```v oksyntax -- 2.30.2