gpt4 book ai didi

c++ - Eclipse CDT 的 Armadillo 编译错误

转载 作者:行者123 更新时间:2023-11-28 06:45:36 27 4
gpt4 key购买 nike

我正在使用 Eclipse CDT、OpenCV 和 Armadillo 编译一些应用程序。我收到以下错误,

In file included from /usr/include/armadillo:108:0,
from /home/bmmo/workspace/GS/Source/IMU/MagRLS.h:11,
from /home/bmmo/workspace/GS/Source/IMU/IMU_class.h:11,
from ../Source/Navigation/NAV2/nav2_get_u.cpp:2:
/usr/include/armadillo_bits/lapack_bones.hpp:235:106: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/armadillo_bits/lapack_bones.hpp:236:106: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/armadillo_bits/lapack_bones.hpp:295:139: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/armadillo_bits/lapack_bones.hpp:296:139: error: expected ‘,’ or ‘...’ before numeric constant
In file included from /usr/include/armadillo:112:0,
from /home/bmmo/workspace/GS/Source/IMU/MagRLS.h:11,
from /home/bmmo/workspace/GS/Source/IMU/IMU_class.h:11,
from ../Source/Navigation/NAV2/nav2_get_u.cpp:2:
/usr/include/armadillo_bits/lapack_wrapper.hpp:184:31: error: expected ‘,’ or ‘...’ before numeric constant
/usr/include/armadillo_bits/lapack_wrapper.hpp: In function ‘void arma::lapack::geev(char*, char*, arma::blas_int*, eT*, arma::blas_int*, eT*)’:
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:74: error: ‘wi’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:82: error: ‘vl’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:86: error: ‘ldvl’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:96: error: ‘vr’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:100: error: ‘ldvr’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:110: error: ‘work’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:116: error: ‘lwork’ was not declared in this scope
/usr/include/armadillo_bits/lapack_wrapper.hpp:195:123: error: ‘info’ was not declared in this scope

我可以毫无问题地编译较小的应用程序,但是对于较大的项目(使用相同的配置)我会收到此错误。有什么问题吗?

最佳答案

在任何 OpenCV header 之前包含 Armadillo header 。我怀疑 OpenCV 使用了一些错误的 #defines,它们会干扰 Armadillo 使用的函数和/或变量名。

关于c++ - Eclipse CDT 的 Armadillo 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25065987/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com