We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
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
It should feed to the compiler: dmd -m64 app.d nk.c and properly compile
dmd -m64 app.d nk.c
The text was updated successfully, but these errors were encountered:
Is this still a bug following the aforementioned merger?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
System information
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
app.d
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 compileThe text was updated successfully, but these errors were encountered: