Boost logo

Boost Users :

Subject: Re: [Boost-users] compiling chapter 2 BGL
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-08-09 13:29:28


AMDG

Louis Lavery wrote:
> I've owned the BGL book for a few years and am, just now, having a
> go at chapter 3. I've written...
>
> #include <boost/graph/adjacency_list.hpp>
>
> int main()
> {
> return EXIT_SUCCESS;
> }
>
> ...and, when I compile it using vc9, get...
>
>
> Compiling...
> main.cpp
> c:\boost_1_42_0\boost\unordered\unordered_set.hpp(402) : error C2220:
> warning treated as error - no 'object' file generated
> c:\boost_1_42_0\boost\unordered\unordered_set.hpp(500) : see
> reference to class template instantiation
> 'boost::unordered_set<T,H,P,A>' being compiled
> c:\boost_1_42_0\boost\unordered\unordered_set.hpp(402) : warning
> C4224: nonstandard extension used : formal parameter 'hash' was
> previously defined as a type

I don't think this is a legitimate warning. I've seen complaints about
it before, but I've never been able to reproduce it. What compiler
options are you using? (You can get them from the IDE at
Project -> Properties -> Configuration Properties -> C/C++ -> Command Line)

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