Yet another linker error: 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Yet another linker error: 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'

Hrgovcic, Joe
Yet another linker error: 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'

Hello,

        I have linker problem I haven't seen resolved here. I get it while trying trying to link the testsuite module of QuantLib

LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'


For what it's worth, I've already included my version of boost in the Tools->VC++ Directories->Include Files section of the module's Properties page, so I don't think that's the issue. Also, I'm running in the debug configuration and the Properties->Configuration Properties->C/C++->Code Generation->Runtime Library is set to Multi-threaded Debug, as are all the other QuantLib modules I'm using, so I don't think any conflict there is the issue either.  As far as I can tell, there is no such .lib file (or any similarly named file) that is generated anywhere on my system. Any help would be very appreciated.


Thanks,

Joe

Reply | Threaded
Open this post in threaded view
|

Re: Yet another linker error: 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'

Luigi Ballabio
On Wed, 23 Feb 2005 14:58:55 -0500, Hrgovcic, Joe
<[hidden email]> wrote:
>
>         I have linker problem I haven't seen resolved here. I get it while
> trying trying to link the testsuite module of QuantLib
>
> LINK : fatal error LNK1104: cannot open file
> 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'
>  
> As far as I can tell, there is no such .lib file (or any
> similarly named file) that is generated anywhere on my system.

Joe,
    you probably copied the Boost distribution somewhere on your disk
without actually building it. This is fine for the QuantLib library
(as it only uses Boost include files) but the test-suite needs a Boost
library.
See <http://www.boost.org/more/getting_started.html> for information
on how to build Boost.

Later,
        Luigi


Reply | Threaded
Open this post in threaded view
|

Re: Yet another linker error: 'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'

Ferdinando M. Ametrano-3
In reply to this post by Hrgovcic, Joe
Hi Joe

you wrote:
>         I have linker problem I haven't seen resolved here. I get it
> while trying trying to link the testsuite module of QuantLib
>
>LINK : fatal error LNK1104: cannot open file
>'libboost_unit_test_framework-vc71-mt-sgd-1_32.lib'

you haven't compiled the boost libraries. While QuantLib depends only on
boost headers, the test-suite depends on boost unit test libraries.
See http://www.boost.org/more/getting_started.html, especially "build and
install"

>For what it's worth, I've already included my version of boost in the
>Tools->VC++ Directories->Include Files section of the module's Properties
>page, so I don't think that's the issue.
For the test suite you will also need to add the boost library folder in
"Tools->VC++ Directories->Library Files" (or something equivalent: I don't
have access to VC now)

hope it helps

ciao -- Nando