dustmite on dub project
Andre Pany
andre at s-e-a-p.de
Tue Jan 26 19:41:52 UTC 2021
On Tuesday, 26 January 2021 at 16:04:29 UTC, Steven Schveighoffer
wrote:
> I have a bug report in mysql-native that if you try to create
> the following file, and add mysql-native as a dependency it
> fails to link on Windows 10:
>
> import std.stdio;
> import mysql;
>
> void main()
> {
> writeln("Edit source/app.d to start your project.");
> }
>
> You might recognize that as the default dub file, with an extra
> import.
>
> The link error is:
>
> testmysql.obj : error LNK2001: unresolved external symbol
> _D5mysql12__ModuleInfoZ
>
> So I figured I'd try dustmite, and used:
>
> dub dustmite ..\dusted --linker-status=1
>
> The result after almost 2 days: a bunch of directories with
> mostly no d files, and no source code in any of the d files.
>
> What did I do wrong? Is this even worth trying again? 2 days is
> a long time to tie up my windows vm.
>
> -Steve
For your specific problem, this issue is related to your dub.json:
"configurations": [
{
"excludedSourceFiles": [
"source/mysql/package.d"
],
"name": "application",
"targetType": "executable",
"versions": [
"VibeCustomMain"
]
},
{
"excludedSourceFiles": [
"source/app.d",
"source/mysql/package.d"
],
"name": "library",
"targetType": "library"
}
],
If you remove the excludedSourceFiles from config "library", it
is working.
But at the moment I am puzzled, what is going on here.
Kind regards
André
More information about the Digitalmars-d-learn
mailing list