Boost logo

Boost Users :

Subject: Re: [Boost-users] Error while compiling boost thread
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-02 11:24:06


>
> c:\program files\bthread\boost\shared_ptr.hpp(142) : error C2332: 'class' :
> missing tag name
> 1>c:\program files\bthread\boost\shared_ptr.hpp(142) : error C2011:
> '<unnamed-tag>' : 'enum' type redefinition
> 1> c:\program files\microsoft sdks\windows\v6.0a\include\shlwapi.h(1550) :
> see declaration of '<unnamed-tag>'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(142) : error C2143: syntax
> error : missing ',' before 'return'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(146) : error C2332: 'class'
> : missing tag name
> 1>c:\program files\bthread\boost\shared_ptr.hpp(146) : error C2011:
> '<unnamed-tag>' : 'enum' type redefinition
> 1> c:\program files\microsoft sdks\windows\v6.0a\include\shlwapi.h(1550) :
> see declaration of '<unnamed-tag>'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(146) : error C2143: syntax
> error : missing ',' before 'return'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(146) : error C2059: syntax
> error : 'return'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(147) : error C2143: syntax
> error : missing ';' before '{'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(149) : error C2143: syntax
> error : missing ';' before '}'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(153) : error C2143: syntax
> error : missing ';' before '}'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(164) : error C2649:
> 'typename' : is not a 'class'
> 1>c:\program files\bthread\boost\shared_ptr.hpp(529) : error C2649:
> 'typename' : is not a 'class'
>

You didn't attach the code you try to compile.
It seems like missing ";" after a class definition in one of your headers.



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