库信息
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.//
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
...\include\eigen\eigen\eigen\src/Core/MathFunctions.h(433): error C2027: 使用了未定义类型“Eigen::internal::random_retval”
...\include\eigen\eigen\src/Core/MathFunctions.h(429) : 参见“Eigen::internal::random_retval”的声明
...\include\eigen\eigen\src/Core/MathFunctions.h(433): error C2062: 意外的类型“double”
应该不是代码的问题,因为在之前的项目过程中,并没有发生此类错误。
后面测试发现,头文件的包含顺序导致了该错误,虽然也不知道是为什么错。。。。 感谢师兄的帮忙