enforce weak linking of xerbla

This commit is contained in:
Gael Guennebaud 2011-12-10 19:30:36 +01:00
parent 105e170d8b
commit f35708d2e0

View File

@ -1,12 +1,18 @@
#include <iostream>
#if (defined __GNUC__)
#define EIGEN_WEAK_LINKING __attribute__ ((weak))
#else
#define EIGEN_WEAK_LINKING
#endif
#ifdef __cplusplus
extern "C"
{
#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";
return 0;