https://bugs.kde.org/show_bug.cgi?id=442082
Bug ID: 442082
Summary: Fails to build against eigen 3.4
Product: kstars
Version: 3.5.4
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Some headers in kstars contain "using namespace Eigen". Since 3.4.0, Eigen
provides a new "Vector" type.
This conflicts with the "Vector" type defined by kstars' vect.h.
[ 539s] In file included from
/home/abuild/rpmbuild/BUILD/kstars-3.5.4/kstars/ekos/guide/internalguide/starcorrespondence.h:18,
[ 539s] from
/home/abuild/rpmbuild/BUILD/kstars-3.5.4/kstars/ekos/align/align.h:23,
[ 539s] from
/home/abuild/rpmbuild/BUILD/kstars-3.5.4/kstars/ekos/manager.h:21,
[ 539s] from
/home/abuild/rpmbuild/BUILD/kstars-3.5.4/kstars/kstarsactions.cpp:87:
[ 539s]
/home/abuild/rpmbuild/BUILD/kstars-3.5.4/kstars/ekos/guide/internalguide/vect.h:72:8:
error: reference to 'Vector' is ambiguous
[ 539s] 72 | inline Vector Vector ::operator-() const
The usual recommendation is to only use "using namespace" in source files
instead of header files and to use the fully qualified name instead.
--
You are receiving this mail because:
You are watching all bug changes.