digitalmars.D.ide - VD including libraries
- Prudence (11/11) Sep 10 2015 I have two projects in a solution. One is a test project and the
I have two projects in a solution. One is a test project and the other is the main project with several modules in several sub-dirs included that I use as a "library". In the test project, how do I include references to the library so I can test specific library features without disturbing the main project? I've tried messing with the properties and adding the corresponding paths but the test project never finds the modules. Of course, the exact same code works in the main project. Does VD ignore the library files and library paths? I'm simply going to make a junction and use that as the link, but I'd prefer not to.
Sep 10 2015
I'm simply going to make a junction and use that as the link, but I'd prefer not to.or not.... Even though it is the exact same library(using a junction on both), the test project says that the module name conflicts with the package name. If I disable the main project(unload it), same issue. Since there is no difference between the two, I can't see why there should be any errors(Same library, yet in one case, the compiler complains that there are "issues" with the library). Probably a dmd problem: https://github.com/D-Programming-Language/dmd/commit/03236adb63a1d0d9ed0d9ec2cc6a7ff0792d371b Yeah, this is fun!!!!
Sep 10 2015
I simply removed the offending file. I suppose because it had the same name as the parent folder, it was causing issues. Why it worked on the main project is beyond me(maybe a clue below): A bigger issue seems to be that when I have unloaded the main project, which is a win32 app, I get the following error: Error Error: only one main/WinMain/DllMain allowed Yet, the project is suppose to be unloaded!!!! There should be no WinMain to locate!! The test project does not reference the main project either and is a console app(maybe the reason for the first error, as that is the only real difference between the two projects). It seems that VD is ignoring that the project is unloaded?
Sep 10 2015
It seems that VD is ignoring that the project is unloaded?Never mind on the last one. Was an issue with versioning.
Sep 10 2015