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
Andrew J. Leer wrote:
> I received another reply on this, but it still doesn't completely fix the error
> 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>LINK : fatal error LNK1104: cannot open file
> 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)
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