www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Build Problem

reply Trevor Parscal <Trevor_member pathlink.com> writes:
Does anyone know how to tell build (the compiling helper program) to look in a
specific directory for the .lib files? I get sick of putting them in the root.

Thanks for the help in advance... :)

Thanks,
Trevor Parscal
www.trevorparscal.com
trevorparscal hotmail.com
May 31 2005
next sibling parent reply zwang <nehzgnaw gmail.com> writes:
Trevor Parscal wrote:
 Does anyone know how to tell build (the compiling helper program) to look in a
 specific directory for the .lib files? I get sick of putting them in the root.
 
 Thanks for the help in advance... :)
 
 Thanks,
 Trevor Parscal
 www.trevorparscal.com
 trevorparscal hotmail.com
-LIBPATH=<pathlist>
May 31 2005
parent reply Trevor Parscal <Trevor_member pathlink.com> writes:
In article <d7ha7v$18v7$1 digitaldaemon.com>, zwang says...
Trevor Parscal wrote:
 Does anyone know how to tell build (the compiling helper program) to look in a
 specific directory for the .lib files? I get sick of putting them in the root.
 
 Thanks for the help in advance... :)
 
 Thanks,
 Trevor Parscal
 www.trevorparscal.com
 trevorparscal hotmail.com
-LIBPATH=<pathlist>
I add "-LIBPATH=.\Libraries" and I get this... OPTLINK : Warning 9: Unknown Option : NOIIBPATH OPTLINK : Error 8: Illegal Filename Thanks, Trevor Parscal www.trevorparscal.com trevorparscal hotmail.com
May 31 2005
parent Trevor Parscal <trevorparscal hotmail.com> writes:
Trevor Parscal wrote:
 In article <d7ha7v$18v7$1 digitaldaemon.com>, zwang says...
 
Trevor Parscal wrote:

Does anyone know how to tell build (the compiling helper program) to look in a
specific directory for the .lib files? I get sick of putting them in the root.

Thanks for the help in advance... :)

Thanks,
Trevor Parscal
www.trevorparscal.com
trevorparscal hotmail.com
-LIBPATH=<pathlist>
I add "-LIBPATH=.\Libraries" and I get this... OPTLINK : Warning 9: Unknown Option : NOIIBPATH OPTLINK : Error 8: Illegal Filename Thanks, Trevor Parscal www.trevorparscal.com trevorparscal hotmail.com
OK, I got it now... I just do this instead.. pragma (lib, "Libraries\\DevIL.lib"); Thanks though. :)
May 31 2005
prev sibling parent reply Derek Parnell <derek psych.ward> writes:
On Tue, 31 May 2005 09:18:19 +0000 (UTC), Trevor Parscal wrote:

 Does anyone know how to tell build (the compiling helper program) to look in a
 specific directory for the .lib files? I get sick of putting them in the root.
I've read the other response about -LIBPATH. That switch was added to Build only in the latest release, v2.08. So if you are using v2.08 then use the -LIBPATH=... switch. If you are using an earlier version (I suggest you upgrade) you can use the pragma(link, "path\\libname") approach. To tell which version you are using type "build -info" on the command line. -- Derek Parnell Melbourne, Australia BUILD v2.08 is now available. 29/May/2005 http://www.dsource.org/projects/build 31/05/2005 9:17:55 PM
May 31 2005
next sibling parent Trevor Parscal <trevorparscal hotmail.com> writes:
Derek Parnell wrote:
 On Tue, 31 May 2005 09:18:19 +0000 (UTC), Trevor Parscal wrote:
 
 
Does anyone know how to tell build (the compiling helper program) to look in a
specific directory for the .lib files? I get sick of putting them in the root.
I've read the other response about -LIBPATH. That switch was added to Build only in the latest release, v2.08. So if you are using v2.08 then use the -LIBPATH=... switch. If you are using an earlier version (I suggest you upgrade) you can use the pragma(link, "path\\libname") approach. To tell which version you are using type "build -info" on the command line.
Thanks for the info... I will upgrade.. :) -- Thanks, Trevor Parscal www.trevorparscal.com trevorparscal hotmail.com
May 31 2005
prev sibling parent "Regan Heath" <regan netwin.co.nz> writes:
On Tue, 31 May 2005 21:19:06 +1000, Derek Parnell <derek psych.ward> wrote:
 On Tue, 31 May 2005 09:18:19 +0000 (UTC), Trevor Parscal wrote:

 Does anyone know how to tell build (the compiling helper program) to  
 look in a
 specific directory for the .lib files? I get sick of putting them in  
 the root.
I've read the other response about -LIBPATH. That switch was added to Build only in the latest release, v2.08. So if you are using v2.08 then use the -LIBPATH=... switch. If you are using an earlier version (I suggest you upgrade) you can use the pragma(link, "path\\libname") approach. To tell which version you are using type "build -info" on the command line.
Can it also be added to the dmd sc.ini file? eg. LIB="% P%\..\lib";\dm\lib;<here> Regan
May 31 2005