错误C2039:“ binder2nd”:不是“ std”的成员-本征编译器错误

时间:2019-07-02 07:22:10

标签: eigen

在Visual Studio中使用(Debug / x64)进行编译期间,出现以下错误。

1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): error C2039: 'binder2nd': is not a member of 'std'
1>  c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/arch/CUDA/Half.h(614): note: see declaration of 'std'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): error C2065: 'binder2nd': undeclared identifier
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): error C2974: 'Eigen::internal::functor_traits': invalid template argument for 'T', type expected
1>  c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/util/XprHelper.h(147): note: see declaration of 'Eigen::internal::functor_traits'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): error C2988: unrecognizable template declaration/definition
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): error C2143: syntax error: missing ';' before '>'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): error C2059: syntax error: '>'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(79): error C2143: syntax error: missing ';' before '{'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(79): error C2447: '{': missing function header (old-style formal list?)
1>c:\users\ui2\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(82): error C2039: 'binder1st': is not a member of 'std'
1>  c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/arch/CUDA/Half.h(614): note: see declaration of 'std'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(82): error C2065: 'binder1st': undeclared identifier
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(82): error C2974: 'Eigen::internal::functor_traits': invalid template argument for 'T', type expected
1>  c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(78): note: see declaration of 'Eigen::internal::functor_traits'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(82): error C2988: unrecognizable template declaration/definition
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(82): error C2143: syntax error: missing ';' before '>'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(82): error C2059: syntax error: '>'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(83): error C2143: syntax error: missing ';' before '{'
1>c:\users\ui\desktop\eigen-eigen-323c052e1731\eigen\src/Core/functors/StlFunctors.h(83): error C2447: '{': missing function header (old-style formal list?)
1>CCalcInverse.cpp(94): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

我仅包含Eigen的头文件并进行编译。

0 个答案:

没有答案