www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Library Search Path VD

reply Michelle Long <HappyDance321 gmail.com> writes:
Does the Library Search Path setting in the projects properties 
search all subdirectories?

I had to reset Visual Studio and lost some settings and now some 
projects are not compiling. I believe the VD settings in VS 
options/Projects and Solutions got trashed since I had to remove 
all the VS(which is probably a bad place to put them since they 
are tied to VS's properties and are lost when VS is lost but 
necessary for project creation, rather see them part of the 
project).

I put in a root path in the project settings but it didn't work, 
and neither did it work in the other...

If I add the dir to the project itself then I get out of memory 
errors(It's GtkD and has a lot of files)
Jan 15 2019
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 15/01/2019 21:28, Michelle Long wrote:
 Does the Library Search Path setting in the projects properties search
 all subdirectories?
No, the paths are forwarded to the linker as is, and linkers don't do recursive searching.
 
 I had to reset Visual Studio and lost some settings and now some
 projects are not compiling. I believe the VD settings in VS
 options/Projects and Solutions got trashed since I had to remove all the
 VS(which is probably a bad place to put them since they are tied to VS's
 properties and are lost when VS is lost but necessary for project
 creation, rather see them part of the project).
Yes, you should add search paths in the project configuration most of the time. The global settings are mostly for finding dmd, VS and Windows SDK library folders and allow adapting these in case anything about them changes.
 
 I put in a root path in the project settings but it didn't work, and
 neither did it work in the other...
 
 If I add the dir to the project itself then I get out of memory
 errors(It's GtkD and has a lot of files)
"out of memory" from the compiler or from Visual D? I suspect the former. You could try using a 64-bit version of dmd as built by CI, e.g. https://ci.appveyor.com/project/greenify/dmd/builds/21647378/artifacts The VC++ project integration also allows building per package, but you have to rebuild your projects in this format.
Jan 15 2019