|
Boost Users : |
Subject: Re: [Boost-users] Boost Unit Testing Macros on Visual Studio 2005/Visual C++ 8.0
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-12-09 17:40:55
AMDG
Andrew J. Leer wrote:
> I received another reply on this, but it still doesn't completely fix the error
>
> http://stackoverflow.com/questions/1876444/boost-unit-testing-and-visual-studio-2005-visual-c-and-the-boostautotestsuit
>
> I didn't know this but you have to have #include "stdafx.h" as the
> first line in the file.
>
> Now I'm getting another error however...
>
> 1>Linking...
> 1>LINK : fatal error LNK1104: cannot open file
> 'libboost_unit_test_framework-vc80-mt-gd-1_40.lib'
>
> I really don't understand the error however because I have the
> aforementioned file in my C:\Program Files (x86)\boost\boost_1_40\lib
> directory (unless this warrants including it in the build somehow
> (...I have a java background...I'm a bit new to professional C++ that
> uses libraries...)
>
You need to add the directory to your linker path.
(Tools->Options->Projects and Solutions->VC++ directories)
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net