Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Unit Testing Macros on Visual Studio 2005/Visual C++ 8.0
From: Andrew J. Leer (leeand00_at_[hidden])
Date: 2009-12-09 17:36:47


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...)

Thanks,
   Andrew

On Wed, Dec 9, 2009 at 5:04 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> Gennadiy Rozental wrote:
>>
>> Andrew Leer <leeand00 <at> gmail.com> writes:
>>
>>
>>>
>>>    BOOST_AUTO_TEST_SUITE (stringtest) // name of the test suite is
>>> stringtest
>>>
>>
>> There should not be space between macro name and (.
>>
>
> Whitespace doesn't matter.  It's only required that the preprocessing
> token after the macro name be a (.
>
> In Christ
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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