Boost logo

Boost Users :

Subject: [Boost-users] Error while compiling boost thread
From: ayansinhas_at_[hidden]
Date: 2009-03-02 06:09:24


Hi All,
I am using boost thread for my project. I have used BCP tool to extract
only those binaries that is related to boost thread(and the dependencies
also).... Now I am trying to compile my code using only that thread
binaries.. previously i tried using that binaries by writing a small
code.... and it worked properly. I have done the necessary setings changes
in VS2008. A snippet of the errors are as follows

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'

I have done a little bit of googling... but i am not getting the right
info.... As we can see it is giving syntax error related to .hpp files ....
which I haven't change at all.... I will really appreciate if any body can
throw some light on it....

Thanks in Advance
Ayan.



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