www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Specifying libraries and libary paths using IDE

↑ ↓ ← "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
→ 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
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
↑ ↓ → "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