Here I'm going to provide a few guidelines in order to help those wanting to compile the Python module to run ALGENCAN in a Windows machine. All the steps here were run in a Windows XP machine, using Cygwin with the packages GCC 4.5.3, Python 2.6.8 (with sources) and Numpy 1.6.2 (with sources) . 1) Unpack algencan (I'll use ALGDIR to refer to the directory where it is unpacked) 2) Edit ALGDIR/sources/interfaces/py/Makefile and change the line where it's written: $(FC) $(LDFLAGS) $^ -o $@ adding the flag -lpython2.6: $(FC) $(LDFLAGS) $^ -o $@ -lpython2.6 Note here that I'm using Python 2.6.8, so the flag is called -lpython2.6. If you use a different python version (for example, 2.X) you should use the appropriate flag (ie. -lpython2.X). 3) Edit ALGDIR/Makefile and be sure that the variables PYTHONINC and PYTHONLIB are set correctly 4) Change to the directory ALGDIR and run "make algencan-py" 5) Go to directory ALGDIR/bin/py and rename pywrapper.so to pywrapper.dll . 6) Follow instructions 2 to 5 from the README (located in the ALGDIR directory)
Best wishes,
Ricardo