 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Sean Hoffman Guest
|
Posted: Fri Feb 04, 2005 12:22 pm Post subject: Dumb question- linking to .ib files without putting them in |
|
|
Hi folks. I'm ashamed to admit I've never investigated if it's possible
to link to .lib files without adding them to the project. Adding them
to the project doesn't allow you a path based of a environment variable
or a relative path, and this presents a limitation in a build
environment on different machines.
How do you folks link to a lib?
Thanks in advance..
|
|
| Back to top |
|
 |
Michael Gillen Guest
|
Posted: Fri Feb 04, 2005 2:18 pm Post subject: Re: Dumb question- linking to .ib files without putting them |
|
|
Sean Hoffman wrote:
| Quote: | Hi folks. I'm ashamed to admit I've never investigated if it's possible to link to .lib files
without adding them to the project. Adding them to the project doesn't allow you a path based of
a environment variable or a relative path, and this presents a limitation in a build environment
on different machines.
How do you folks link to a lib?
Thanks in advance..
|
Well, mine is not the best answer, but on each system I have the same path. I have 2 substituded
drives. L: for libs and S: for Source code. So I map those drives no matter which system I'm on,
even though the physical drives are in fact different.
--
-Michael Gillen
|
|
| Back to top |
|
 |
guanxin Guest
|
Posted: Fri Feb 04, 2005 2:20 pm Post subject: Re: Dumb question- linking to .ib files without putting them |
|
|
#pragma link "filename.lib"
|
|
| Back to top |
|
 |
Danzer Guest
|
Posted: Sat Feb 05, 2005 6:18 pm Post subject: Re: Dumb question- linking to .ib files without putting them |
|
|
Sean Hoffman wrote:
| Quote: | Hi folks. I'm ashamed to admit I've never investigated if it's possible
to link to .lib files without adding them to the project. Adding them
to the project doesn't allow you a path based of a environment variable
or a relative path, and this presents a limitation in a build
environment on different machines.
How do you folks link to a lib?
Thanks in advance..
From the command prompt I entered the SET command and noticed that my |
machine has the environmental variable TEMP set to
C:DOCUMEN~1DefaultLOCAL~1Temp. In my project options -> Directories
/ Conditionals -> Library path, Is added the path $(TMP). The ide did
not grey the path, so that means the ide thinks it is a valid path. I
did not try to link with a library in the TMP path, but a test of its
feasibility should be quite easy.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|