On Tuesday, 26 January 2021 at 20:09:27 UTC, Steven Schveighoffer
wrote:
On 1/26/21 2:59 PM, Steven Schveighoffer wrote:
On 1/26/21 2:41 PM, Andre Pany wrote:
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.
Wait, this makes no sense. I'm going to have to figure out why
those are added. And THANK YOU for seeing that. That is
definitely the issue (ModuleInfoZ is the module info for a
module)
Hold on, where do you see this? mysql-native has dub.sdl, and
it doesn't have these in there.
-Steve
I executed `dub init sample` and added in the interactive console
the dependency `mysql-native`. It added `mysql-native ~> 3.0.0`.
In the local dub package folder I opened dub.json of package
mysql-native. I assume dub converts dub.sdl to dub.json while
fetching packages. Here I found the content of this
https://github.com/mysql-d/mysql-native/blob/master/dub.sdl just
as JSON formatted.
For this package I can reproduce the linker error.
Kind regards
André