www.digitalmars.com         C & C++   DMDScript  

c++ - Specifying libraries and libary paths using IDE

reply "Adrian Cole" <acole tantalus-systems.com> writes:
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?
Dec 04 2002
next sibling parent Richard <fractal clark.net> writes:
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
Dec 04 2002
prev sibling parent reply user domain.invalid writes:
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?
 
 

Dec 04 2002
parent "Adrian Cole" <acole tantalus-systems.com> writes:
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


 I've found to specify a library to link is throught the Edit Project


 which forces me to explicitly choose which library to link. The problem


 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


 offer some help?


Dec 04 2002