I have been trying to install/compile C libraries in Windows 7 using Cygwin and MinGW. However, I am getting errors like these during make
:
sys/
Build libigraph with minGW without having "sys/times.h"
That may be interesting for all building "igraph" and don't want to create it with "cygwin" but with "mingw".
In my "msys / mingw" environment, I have my "source code" in. "C:\msys\1.0\src" directory.
igraph dir. == C:\msys\1.0\src\igraph-0.6
Administrator@drserver-p /usr/src/igraph-0.6
$ ./configure
it takes a while.
Change of files.
Open igraph-0.6\src\f2c\s_paus.c
Goto Line 84 or search for pause();
comment this line /* pause(); */
Type make Now the msys shell look something like
Administrator@drserver-p /usr/src/igraph-0.6
$ make
If it works it takes about 1 hour !
see http://mail.kde.org/pipermail/kde-windows/2006-May/000194.html as they say even if the times.h is put there its functions may not be implemented by mingw
when running ./configure i'm getting this(its hard to notice)
so first try copying the times.h and then use ./configure and see if this error isn't there
you should check your makefile, the CFLAGS/CPPFLAGS has -DWIN32 -D_WINDOWS for windows. in other words, you should never access the sys/times code branch on windows.
After much investigation, the problem turned out to be that:
This was discovered while trying to resolve another problem here:
Cannot compile C code with #include <sys/times.h> in Cygwin
So it turns out that my problem had nothing to do with the include path or making symbolic links, but rather, the gcc version/type was wrong. This fact eluded me because I was running a clean installation of Cygwin and didn't know that it would automatically use the MinGW's gcc in my Python folder.