Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
May 31, 2005 Build Problem | ||||
---|---|---|---|---|
| ||||
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 Re: Build Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trevor Parscal | 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 Re: Build Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | 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 Re: Build Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trevor Parscal | 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 Re: Build Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trevor Parscal | 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 Re: Build Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | 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 Re: Build Problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | 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 |
Copyright © 1999-2021 by the D Language Foundation