On 2011-04-05 22:58, Andrej Mitrovic wrote:
On 4/5/11, Jacob Carlborg<d...@me.com>  wrote:
On 2011-04-05 20:57, Andrej Mitrovic wrote:
On 4/5/11, Jacob Carlborg<d...@me.com>   wrote:
It's handy if you have a common directory with lib files.

Well I've always wanted to do that, but how eactly do you set a
library search directory with Optlink/DMD?

Don't know about Optlink but on Posix systems it's: -L-L/path/to/libraires

Oh well that's an LD trick then. :)

I have figured out a way to do it with Optlink, but I have to use the
LIB environment variable. So in a batch file I could have:
set LIB=C:\PathToMyLib\;%LIB%
dmd test.d myLib.lib

This will work. I should update the dwiki entry and add this information there.

Have a look at the lib section: http://www.digitalmars.com/ctg/optlink.html#operational

"The lib entry may be either a single file name or a pathname (with trailing "\") to a directory containing the libraries. "

--
/Jacob Carlborg

Reply via email to