Bug 400223 - Please do not define the macro R: the variable R is used in Eigen and causes a name collision
Summary: Please do not define the macro R: the variable R is used in Eigen and causes ...
Status: RESOLVED FIXED
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2018-10-23 22:26 UTC by Yuri
Modified: 2020-12-20 23:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2018-10-23 22:26:33 UTC
In file included from /wrkdirs/usr/ports/science/kalzium-kde4/work/kalzium-4.14.3/src/kalzium.cpp:44:
In file included from /wrkdirs/usr/ports/science/kalzium-kde4/work/kalzium-4.14.3/src/tools/moleculeview.h:19:
In file included from src/ui_moleculeviewerwidget.h:29:
In file included from /wrkdirs/usr/ports/science/kalzium-kde4/work/kalzium-4.14.3/src/tools/../../compoundviewer/kalziumglwidget.h:17:
In file included from /usr/local/include/avogadro/glwidget.h:34:
In file included from /usr/local/include/eigen3/Eigen/Core:491:
/usr/local/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1589:30: error: expected unqualified-id
              SResPacketHalf R = res.template gatherPacket<SResPacketHalf>(i, j2);
                             ^
/wrkdirs/usr/ports/science/kalzium-kde4/work/kalzium-4.14.3/src/calculator/gasCalculator.h:31:11: note: expanded from macro 'R'
#define R 0.08206
          ^
In file included from /wrkdirs/usr/ports/science/kalzium-kde4/work/kalzium-4.14.3/src/kalzium.cpp:44:
In file included from /wrkdirs/usr/ports/science/kalzium-kde4/work/kalzium-4.14.3/src/tools/moleculeview.h:19:
In file included from src/ui_moleculeviewerwidget.h:29:


Log URL: http://beefy5.nyi.freebsd.org/data/104i386-default/482808/logs/kalzium-kde4-4.14.3_5.log

Found during the FreeBSD port build.
Comment 1 Jazeix Johnny 2020-12-20 23:10:58 UTC
This was updated to a const double R = 0.08206 (https://invent.kde.org/education/kalzium/-/commit/1eee121af8f734667143617ac677ca0807c512c5, in 2016)

Can you test with a more recent version?