12 #elif defined(GLib_GLIBC) || defined(GLib_BSD)
13 struct __exception {
14 int type; /* Exception type */
15 char* name; /* Name of function causing exception */
16 double arg1; /* 1st argument to function */
17 double arg2; /* 2nd argument to function */
18 double retval; /* Function return value */
19 };
20
21 int _matherr(struct __exception* e){
最后加的是
/usr/lib/gcc/x86_64-linux-gnu/4.8.5/libgfortran.so
否则会出现。
can not be used when making a PIE object; recompile with -fPIC
一类的错误。
应该是两个机器的gcc不太一样的原因。.so .a的区别,我暂时不知道。可能还得看看c++的书。应该一个动态的,一个是静态的,根据自己的机器,尝试一下。
另外,ARpack里的UTIL下的second.f