Eigen/MathFunctions.h error C2027: 使用了未定义类型“Eigen::internal::random_retval”

库信息

// 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”


应该不是代码的问题,因为在之前的项目过程中,并没有发生此类错误。


后面测试发现,头文件的包含顺序导致了该错误,虽然也不知道是为什么错。。。。 感谢师兄的帮忙

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值