mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
enforce weak linking of xerbla
This commit is contained in:
@@ -1,12 +1,18 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#if (defined __GNUC__)
|
||||||
|
#define EIGEN_WEAK_LINKING __attribute__ ((weak))
|
||||||
|
#else
|
||||||
|
#define EIGEN_WEAK_LINKING
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int xerbla_(const char * msg, int *info, int)
|
EIGEN_WEAK_LINKING int xerbla_(const char * msg, int *info, int)
|
||||||
{
|
{
|
||||||
std::cerr << "Eigen BLAS ERROR #" << *info << ": " << msg << "\n";
|
std::cerr << "Eigen BLAS ERROR #" << *info << ": " << msg << "\n";
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user