Boost logo

Boost :

Subject: Re: [boost] [integer] Compilation failed in Visual Studio
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-09-09 11:56:51


AMDG

Adam Badura wrote:
> Following simple program:
>
> #include <boost/integer_fwd.hpp>
>
> int main()
> {
> return 0;
> }
>
> does not compile in Visual Studio 2008 with Boost 1.40.0. Compilation
> errors are following:
>
> 1>d:\libraries\boost_1_40_0\boost\integer_fwd.hpp(70) : error C2039:
> 'long_long_type' : is not a member of 'boost'
> 1>d:\libraries\boost_1_40_0\boost\integer_fwd.hpp(70) : error C2065:
> 'long_long_type' : undeclared identifier
> 1>d:\libraries\boost_1_40_0\boost\integer_fwd.hpp(70) : error C2913:
> explicit specialization; 'boost::integer_traits' is not a
> specialization of a class template
> 1>d:\libraries\boost_1_40_0\boost\integer_fwd.hpp(73) : error C2913:
> explicit specialization; 'boost::integer_traits' is not a
> specialization of a class template

It compiles fine for me. Can you try running just
cl -Id:\libraries\boost_1_40_0 <test file>.cpp
to check whether it's the result of some compiler option?
Here's what I get:

C:\Documents and Settings\Steven\My Documents\Visual Studio
2008\Projects\scratc
h\scratch>cl scratch.cpp -I"C:\Documents and Settings\Steven\My
Documents\boost_
1_40_0\boost_1_40_0"
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

scratch.cpp
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

/out:scratch.exe
scratch.obj

C:\Documents and Settings\Steven\My Documents\Visual Studio
2008\Projects\scratc
h\scratch>type scratch.cpp
#include <boost/integer_fwd.hpp>

int main()
{
   return 0;
}

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk