c++ - Specifying libraries and libary paths using IDE
- Adrian Cole (7/7) Dec 04 2002 I want to link a library that I've built into and executable. The only w...
- Richard (6/13) Dec 04 2002 Try..
- user domain.invalid (17/26) Dec 04 2002 Using the IDDE:
- Adrian Cole (7/33) Dec 04 2002 Thanks! That did it.
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
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
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
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:wayI want to link a library that I've built into and executable. The onlydialog,I've found to specify a library to link is throught the Edit Projectis,which forces me to explicitly choose which library to link. The problemanyoneI 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. Canoffer some help?
Dec 04 2002