Hello, I'm trying to get f2py working from the command line on windows XP. I have mingw32 as my C complier (after some advice on a previous thread) and Compaq Visual Fortran 6.5. Changing my C complier reduced my errors but I'm still having trouble. I think I have all the correct paths set but I'm not sure. F2PY gets further when I specifically tell it what my compilers are as follows.................
C:\Program Files\ESI_Software\SileFortran\ExampleF2PY>f2py --fcompiler=compaqv - -compiler=mingw32 -c -m hello hello.f If I don't specify the compliers it looks for a file cl.exe then terminates when it can't find it. Once the compliers are specified it seems to read my fortran code ok, build the module "hello" and the wrapper function "foo" and writes a temporary file "hellomodule.c" Then it seems to use MINGW32 ok......... The problem arises right at the end when it tries to generate hello.pyd and I'm not sure why, I've included the error below. I've tried eveything I can think of but I'm very new to programming so I'm not having much success. Any help would be much appreciated. Thanks, Sile DF:f77: hello.f DF c:\docume~1\esil\locals~1\temp\tmp-tajpa\Release\docume~1\esil\locals~1\temp\ tmp-tajpa\src.win32-2.3\hellomodule.o c:\docume~1\esil\locals~1\temp\tmp-tajpa\R elease\docume~1\esil\locals~1\temp\tmp-tajpa\src.win32-2.3\fortranobject.o c:\do cume~1\esil\locals~1\temp\tmp-tajpa\Release\hello.o -LC:\PROGRA~1\ESI_SO~1\UTILS _~1\PYTHON~1.3_C\libs -LC:\PROGRA~1\ESI_SO~1\UTILS_~1\PYTHON~1.3_C\PCBuild -lpyt hon23 /OUT:.\hello.pyd DF: error: Unknown switch: '-LC:\PROGRA~1\ESI_SO~1\UTILS_~1\PYTHON~1.3_C\libs' error: Command "DF c:\docume~1\esil\locals~1\temp\tmp-tajpa\Release\docume~1\esi l\locals~1\temp\tmp-tajpa\src.win32-2.3\hellomodule.o c:\docume~1\esil\locals~1\ temp\tmp-tajpa\Release\docume~1\esil\locals~1\temp\tmp-tajpa\src.win32-2.3\fortr anobject.o c:\docume~1\esil\locals~1\temp\tmp-tajpa\Release\hello.o -LC:\PROGRA~ 1\ESI_SO~1\UTILS_~1\PYTHON~1.3_C\libs -LC:\PROGRA~1\ESI_SO~1\UTILS_~1\PYTHON~1.3 _C\PCBuild -lpython23 /OUT:.\hello.pyd" failed with exit status 1 -- http://mail.python.org/mailman/listinfo/python-list