On Sunday, 11 September 2016 at 21:43:12 UTC, Geert wrote:
Hi!
I'm using a mysql wrapper (i don't even know how to use it yet)
that i got from github:
https://github.com/adamdruppe/arsd
When i try to compile the code i get an error message:
Error: module mysql is in file 'mysql.d' which cannot be read
This is the folder structure i have:
/home/test/main.d
/home/test/arsd/mysql.d
/home/test/arsd/database.d
And the compile command:
ldc main.d mysql.d database.d -I/home/test/arsd/
The main file contains a few lines just to test:
module compiling_test;
import arsd.mysql;
import arsd.database;
int main(string[] args) {
return 0;
}
I was passing the wrong paths. Te correct compile command is:
ldc main.d arsd/mysql.d arsd/database.d
-I/home/marduk/Proyectos/gtkd/sql/arsd