Hello,
Probably a newbie question, but here it goes: if I include the boost
thread as follows
#include
and try to compile my library in MSVC++ 2005, I get a lot of errors in
c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp
I have included a piece of the errorlog next:
3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(120) :
error C2917: '_av *' : invalid template-parameter
3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(126) :
error C2146: syntax error : missing ';' before identifier
'second_argument_type'
3> c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(171) :
see reference to class template instantiation
'boost::_mfi::mf1' being compiled
3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(126) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(126) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
......
......
c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(581) :
error C2917: '_av *' : invalid template-parameter
3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(581) :
error C2991: redefinition of template parameter '_av'
3> c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(581) :
see declaration of '_av'
3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(581) :
fatal error C1003: error count exceeds 100; stopping compilation
Could someone give me any pointers to what could be the problem? When
using it in a very simple program, it does work. Including it in my
quite large library it does not work.
Kind regards,
Christian