Boost logo

Boost Users :

From: Christian Mol (cpmol_at_[hidden])
Date: 2007-04-23 04:13:02


Hello,

Probably a newbie question, but here it goes: if I include the boost
thread as follows

#include <boost/thread/thread.hpp>

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<R,T,_av>' 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


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