ImportC: unresolved external symbol
ryuukk_
ryuukk.devv at gmail.com
Tue Jun 14 14:32:50 UTC 2022
Hello
Tried to give ImportC a try to finally get rid of gluecode in one
of my project, but this simple test gives me a compile error:
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
```
Am i missing something important? (that is a dub project, created
with: dub init)
DMD: v2.100.0-dirty
More information about the Digitalmars-d-learn
mailing list