This bugzilla service is closed. All entries have been migrated to
Bug 1485 - Compilation error with PaStiX module
Summary: Compilation error with PaStiX module
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux
: Normal Compilation Problem
Assignee: Nobody
Depends on:
Reported: 2017-11-12 14:19 UTC by Darcy
Modified: 2019-12-04 17:16 UTC (History)
4 users (show)

Add inline specifier to wrapper functions (2.58 KB, patch)
2017-11-13 13:06 UTC, Darcy
no flags Details | Diff

Description Darcy 2017-11-12 14:19:31 UTC
When using the PaStiX module (#include <Eigen/PaStiXSupport>
), there is a ODR violation when including the header across multiple translation units.  The culprit appears to be the void eigen_pastix(...) function that require an inline specifier to avoid the compilation error.

To reproduce, simply have this header included in two compilation units and try to link.  Error occurs with g++ version 7.2.1.
Comment 1 Darcy 2017-11-13 13:06:15 UTC
Created attachment 802 [details]
Add inline specifier to wrapper functions
Comment 2 Gael Guennebaud 2017-11-15 20:35:49 UTC
Thank you for the report. (devel) (3.3)
Comment 3 Nobody 2019-12-04 17:16:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:

Note You need to log in before you can comment on or make changes to this bug.