dub
dub copied to clipboard
ImportC: .c files are not passed to compiler, results in unresoved external symbol
trafficstars
System information
- dub: 1.29.0
- windows x64 / arch linux
- dmd: v2.100.0
Bug Description
When compiling a project with a .c file, dub doesn't feed it to the compiler, wich results then in compile error, unresolved external symbol
How to reproduce?
nk.c
int test(void)
{
return 1;
}
app.d
import std.stdio;
import nk = nk;
void main()
{
if (nk.test() != 0)
{
writeln("test");
}
}
nk.obj : error LNK2019: unresolved external symbol test referenced in function _Dmain
Expected Behavior
It should feed to the compiler: dmd -m64 app.d nk.c and properly compile
Is this still a bug following the aforementioned merger?