igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Easier way to compile igraph on Windows?


From: Tamas Nepusz
Subject: Re: [igraph] Easier way to compile igraph on Windows?
Date: Mon, 7 Sep 2015 21:34:52 +0200

> I tried installing msys2 <https://msys2.github.io/> to be able to run the
> configure script, and the mingw-w64 package to be able to compile for 64 bit
> systems.  Unfortunately the build process stops when the compiler cannot
> find <sys/times.h>.
sys/times.h is not available in MinGW, only in Cygwin (as far as I
know). The only place where igraph uses it is in f2c, which is a
third-party library. In particular, the two occurrences are in
src/f2c/dtime_.c and src/f2c/etime_.c. These files seem to use clock()
and CLOCKS_PER_SECOND only. clock() is actually also available from
<time.h>, so you could try including time.h instead of sys/time.h.
Also, CLOCKS_PER_SECOND should probably be replaced with
CLOCKS_PER_SEC because time.h defines CLOCKS_PER_SEC.

Let me know if this worked for you.

T.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]