[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bulk] Re: [igraph] Help with MAKE error
From: |
Michael Perrier |
Subject: |
Re: [Bulk] Re: [igraph] Help with MAKE error |
Date: |
Tue, 13 Apr 2010 11:11:36 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
Hi Tamas,
Thank you for responding quickly, I appreciate your effort.
I installed the GMP library into CygWIN, re-ran ./Configure and the
igraph make is working fine now. Thank you.
Now I just have to overcome security settings so that my user can
install the library (make install).
I believe I can work this one out for myself (unless you already know
about it??).
Again, many thanks for your help with my problem.
Warm regards,
Michael
On 4/13/2010 9:12 AM, Tamas Nepusz wrote:
Hi,
I am trying to MAKE igraph 0.5.3
The error you are seeing is a known bug with Cygwin if you are building
igraph without GMP support, see here:
https://bugs.launchpad.net/igraph/+bug/380622
You have two choices:
1. Install the GMP packages in Cygwin, reconfigure with ./configure and
then run make again.
2. Modify the igraph source code a little bit so it compiles on Cygwin.
You have to add the following lines to src/igraph_math.h, right before
the line containing the declaration of igraph_fmin:
long double igraph_fabsl(long double a);
#define fabsl(a) igraph_fabsl(a)
You also need to add this to src/math.c before the line containing
"double igraph_fmin":
long double igraph_fabsl(long double a) {
if (a<0) {
return -a;
} else {
return a;
}
}