Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
March 10, 2019 [Issue 19726] Visual D does not link C standard library with D-only project | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19726 Rainer Schuetze <r.sagitario@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |r.sagitario@gmx.de --- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> --- The default is not to add any C++ to the project and that works for me. Dmd adds the reference to the C runtime into the module that contains main, DllMain or WinMain. Are you using LDC instead? Or maybe your project doesn't include any of the functions above? You can also disable any C runtime reference by choosing "None" as the "C Runtime Library" in the D compiler options. -- |
March 10, 2019 [Issue 19726] Visual D does not link C standard library with D-only project | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19726 --- Comment #2 from Mihails Strasuns <mihails.strasuns@gmail.com> --- LDC is used. Not sure what do you refer to by disabling C runtime reference - it is needed for D standard library to work. the fact that it is not linked is exactly the problem. Being able to explicitly specify that it needs to be linked via vcxproj spec would also work just fine for me. -- |
March 10, 2019 [Issue 19726] Visual D does not link C standard library with D-only project | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19726 kinke@gmx.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kinke@gmx.net --- Comment #3 from kinke@gmx.net --- Right, that's what I meant by the DMD behavior of embedding the MSVCRT lib references in the main object file sounding like a way to make MSBuild work. If there's no simple Visual D solution to this, we can implement it for LDC too. -- |
March 11, 2019 [Issue 19726] Visual D does not link C standard library with D-only project | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19726 --- Comment #4 from Rainer Schuetze <r.sagitario@gmx.de> --- Looks like I can fix that, Visual D already adds the D libraries to the linker command line. @Mihaels: I meant the "C Runtime Library" selector on the D compiler general page. It is hidden for the LDC compiler pages though, because it has no meaning so far. Current workaround is to add the library (e.g. libcmt.lib or msvcrt.lib) to the Additional Dependencies linker option. -- |
March 12, 2019 [Issue 19726] Visual D does not link C standard library with D-only project | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19726 Mihails Strasuns <mihails.strasuns@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |industry -- |
March 16, 2019 [Issue 19726] Visual D does not link C standard library with D-only project | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19726 Rainer Schuetze <r.sagitario@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> --- fixed in https://github.com/dlang/visuald/releases/tag/v0.49.0-beta1 -- |
Copyright © 1999-2021 by the D Language Foundation