Hi I've built the Python library and a few of my own test projects. I have problems when trying to link with an external library. Basically I get the 'unresolved external' link error. So I look at the jamfile I'm using and in the dependencies section add the following <dll>E:/code/Library/MyLib Then I run bjam again and the first error I get is E:/Code/Library/Jamfile: No such file or directory So I guess its looking for a Jamfile in that directory. Problem is I don't know what to put inside the Jamfile. Can someone please help? Thank you Sashan
For linking to an external library which you can't build, you should use the <find-library> <library-path>, and/or <library-file> directives in your executable's "requirements" section: exe MyProgram : foo.cpp bar.cpp : <library-path>E:/code/Library <find-library>MyLib ; OR exe MyProgram : foo.cpp bar.cpp : <library-file>E:/code/Library/MyLib.lib ; HTH, Dave -- ----------------------------------------------------------- David Abrahams * Boost Consulting dave@boost-consulting.com * http://www.boost-consulting.com "sashan" <sashang@ihug.co.nz> wrote in message news:3D66E3C7.5060605@ihug.co.nz...
Hi
I've built the Python library and a few of my own test projects. I have problems when trying to link with an external library. Basically I get the 'unresolved external' link error. So I look at the jamfile I'm using and in the dependencies section add the following
<dll>E:/code/Library/MyLib
Then I run bjam again and the first error I get is
E:/Code/Library/Jamfile: No such file or directory
So I guess its looking for a Jamfile in that directory. Problem is I don't know what to put inside the Jamfile. Can someone please help?
Thank you
Sashan
participants (2)
-
David Abrahams
-
sashan