This file contains tips given by ALGENCAN users to whom we are very grateful. New tips are very welcome. Compiling the ALGENCAN-Python interface in a Windows environment: ----------------------------------------------------------------- Sent by Xiao Jianfeng (fdu.xiaojf@gmail.com) on September, 2007. g77 -mno-cygwin -O4 -c -fPIC -xf77-cpp-input algencan.f gcc -mno-cygwin -O4 -c -fPIC -Df2cFortran -Id:/programs/python25/include -ID:/programs/python25/Lib/site-packages/numpy/core/include pywrapper.c g77 -mno-cygwin -O4 -shared pywrapper.o algencan.o d:/programs/python25/libs/libpython25.a -o pywrapper.pyd Compiling the ALGENCAN-Octave interface in a Mac OS environment: ---------------------------------------------------------------- Sent by Paul Koufalas (pkoufalas@adam.com.au) on April, 2007. It works on Mac OS X (10.4.8). Noting that Octave (2.1.73) and g95 (0.9, using gcc 4.0.3) have been installed via the Fink project on my Mac. (Fink is porting Linux apps to the Mac; similar to darwinports.) I also point out that I had to comment out the #ifndef and #endif statements in algencan.f otherwise g95 would complain. g++ / gcc (4.0.1) are Apple's. Find below a Makefile for the Octave wrapper to ALGENCAN. FC = /usr/local/bin/g77 CC = g++ LD = gcc FFLAGS = -O4 -fPIC -xf77-cpp-input CFLAGS = -O4 -fPIC -Df2cFortran INCFLAGS = -I/sw/include/octave-2.1.73 -I/sw/include/octave-2.1.73/octave -I/sw/include LFLAGS = -O4 -undefined dynamic_lookup -L/usr/local/lib -lg2c DL_LDFLAGS = -bundle -bundle_loader /sw/bin/octave-2.1.73 all:algencan.o octavewrapper.o $(LD) $(DL_LDFLAGS) $(LFLAGS) $? -o algencan.oct algencan.o: algencan.f $(FC) $(FFLAGS) -c $? -o $@ octavewrapper.o: octavewrapper.c $(CC) $(CFLAGS) $(INCFLAGS) -c $? -o $@