FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is the library search path used?

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
Andrej08



Joined: 31 Aug 2010
Posts: 51

PostPosted: Thu Aug 04, 2011 5:05 pm    Post subject: Is the library search path used? Reply with quote

I've set a library search path but VisualD doesn't seem to use this.

Command line is:
Quote:
dmd -g -debug -X -Xf"$(IntDir)\$(TargetName).json" -I..\Derelict2\import -I..\Samples\win32\ -version=Unicode -version=WIN32_WINNT_ONLY -version=WindowsNTonly -version=Windows2000 -version=Windows2003 -version=WindowsXP -version=WindowsVista -version=Debug -of"$(OutDir)\$(ProjectName).exe_cv" -deps="$(OutDir)\$(ProjectName).dep" -map "$(INTDIR)\$(SAFEPROJECTNAME).map" -L/NOMAP DerelictGL.lib DerelictSDL.lib DerelictUtil.lib


My lib search path is defined as:

Quote:
%CD%\..\Derelict2\lib\


I know Optlink has some issues with search paths, so I thought VD would just prepend the search path manually to each lib file and convert the above to:

Quote:
dmd -g -debug -X -Xf"$(IntDir)\$(TargetName).json" -I..\Derelict2\import -I..\Samples\win32\ -version=Unicode -version=WIN32_WINNT_ONLY -version=WindowsNTonly -version=Windows2000 -version=Windows2003 -version=WindowsXP -version=WindowsVista -version=Debug -of"$(OutDir)\$(ProjectName).exe_cv" -deps="$(OutDir)\$(ProjectName).dep" -map "$(INTDIR)\$(SAFEPROJECTNAME).map" -L/NOMAP %CD%\..\Derelict2\lib\DerelictGL.lib %CD%\..\Derelict2\lib\DerelictSDL.lib %CD%\..\Derelict2\lib\DerelictUtil.lib
Back to top
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Sun Aug 07, 2011 1:47 pm    Post subject: Reply with quote

The library search path might also be needed by libraries specified by pragma statements in the source, so it's not good enough to prepend it to given library files.
As all other ways seem to fail, you'll have to add an entry to DMD's sc.ini as described here: http://www.dsource.org/projects/visuald/wiki/KnownIssues#Librarysearchpathnotpassedtolinker
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group