Thread overview | ||||||
---|---|---|---|---|---|---|
|
December 04, 2002 Specifying libraries and libary paths using IDE | ||||
---|---|---|---|---|
| ||||
I want to link a library that I've built into and executable. The only way I've found to specify a library to link is throught the Edit Project dialog, which forces me to explicitly choose which library to link. The problem is, I want to link a debug library into a debug executable, and a release library into a release executable. There MUST be a way of specifying a library name and different library paths for debug and release. Can anyone offer some help? |
December 04, 2002 Re: Specifying libraries and libary paths using IDE | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adrian Cole | In article <aslk45$2id$1@digitaldaemon.com>, Adrian Cole says... > >I want to link a library that I've built into and executable. The only way I've found to specify a library to link is throught the Edit Project dialog, which forces me to explicitly choose which library to link. The problem is, I want to link a debug library into a debug executable, and a release library into a release executable. There MUST be a way of specifying a library name and different library paths for debug and release. Can anyone offer some help? Try.. Project Settings\Code Generation\Embed Library Named (check box) [path]\your.lib Then make option sets for debug and another for release. Richard |
December 04, 2002 Re: Specifying libraries and libary paths using IDE | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adrian Cole | Using the IDDE:
- right click the project
- click 'settings'
- click tab 'directories'
- in the editcontrol 'Library Directories' you put a ; separated list with the directory path's (absolute or relative' to the lib locations.
- right click the project
- click 'edit project'
- in combobox 'List files of type' selects "Library (*.lib)"
- in the editcontrol 'filename' the only the name of the lib you want to link.
Now you are able to make distinction between release and debug libs by lib-directory path's.
Good luck
Arjan Knepper
Adrian Cole wrote:
> I want to link a library that I've built into and executable. The only way
> I've found to specify a library to link is throught the Edit Project dialog,
> which forces me to explicitly choose which library to link. The problem is,
> I want to link a debug library into a debug executable, and a release
> library into a release executable. There MUST be a way of specifying a
> library name and different library paths for debug and release. Can anyone
> offer some help?
>
>
|
December 05, 2002 Re: Specifying libraries and libary paths using IDE | ||||
---|---|---|---|---|
| ||||
Posted in reply to user | Thanks! That did it. <user@domain.invalid> wrote in message news:asllvv$4ik$1@digitaldaemon.com... > Using the IDDE: > - right click the project > - click 'settings' > - click tab 'directories' > - in the editcontrol 'Library Directories' you put a ; separated > list with the directory path's (absolute or relative' to the lib > locations. > > - right click the project > - click 'edit project' > - in combobox 'List files of type' selects "Library (*.lib)" > - in the editcontrol 'filename' the only the name of the lib you > want to link. > > Now you are able to make distinction between release and debug libs by lib-directory path's. > > Good luck > Arjan Knepper > > Adrian Cole wrote: > > I want to link a library that I've built into and executable. The only way > > I've found to specify a library to link is throught the Edit Project dialog, > > which forces me to explicitly choose which library to link. The problem is, > > I want to link a debug library into a debug executable, and a release library into a release executable. There MUST be a way of specifying a library name and different library paths for debug and release. Can anyone > > offer some help? > > > > > |
Copyright © 1999-2021 by the D Language Foundation