mysql-native: newbie questions

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Mon Feb 17 22:45:51 PST 2014


On 2/17/2014 5:54 PM, salvari wrote:
>
> I'm using Ubuntu 13.10 64 bits. dmd v2.064, dub v0.9.20
>
> I've cloned from github and then:
> $ cd mysql-native
> $ dub
> $ cd ../myProyect
> $ cp -r ../mysql-native/source/mysql .
> $ dmd mpe_procTmpTables.d (fails)
> $ ./mpe_procTmpTables.d   (works fine via rdmd)
>
>
> I know I must be doing something really stupid and wrong but I'm stuck,
> any help would be really appreciated.
>

D's build model is similar to C: The compiler only compiles the files 
you give it. You didn't give it the mysql-native source files, so it 
didn't compile them. Hence, linker errors for all the missing symbols.

The main point of RDMD is to find all the files used by your program and 
automatically pass them all to the compiler. Usually you'll just want to 
use RDMD instead of calling DMD directly. If you don't want RDMD to 
automatically run your program after compiling it, use --build-only.

Or use DUB to build it and run it like simendsjo said. It grabs up all 
your files and passes them all to DMD much like RDMD does.



More information about the Digitalmars-d mailing list