BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dumb question- linking to .ib files without putting them in

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Sean Hoffman
Guest





PostPosted: Fri Feb 04, 2005 12:22 pm    Post subject: Dumb question- linking to .ib files without putting them in Reply with 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..
Back to top
Michael Gillen
Guest





PostPosted: Fri Feb 04, 2005 2:18 pm    Post subject: Re: Dumb question- linking to .ib files without putting them Reply with quote



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





PostPosted: Fri Feb 04, 2005 2:20 pm    Post subject: Re: Dumb question- linking to .ib files without putting them Reply with quote




#pragma link "filename.lib"
Back to top
Danzer
Guest





PostPosted: Sat Feb 05, 2005 6:18 pm    Post subject: Re: Dumb question- linking to .ib files without putting them Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.