[f2py] Compiling/linking the Fortran source files manually
Ben Forbes
bdforbes at gmail.com
Mon Apr 25 10:34:43 EEST 2011
I'm having trouble getting f2py (from Enthought 7.0.2 64-bit) to play
nicely with my compiler (Intel Visual Fortran 11 build 067). I am
running Windows 7 64-bit. My source file is just a hello world
subroutine, and I am running "f2py -c helloworld.f90". The first
apparent errors are when ifort is called:
ifort: command line warning #10006: ignoring unknown option '/shared'
ifort: command line warning #10006: ignoring unknown option '/shared'
ifort: command line warning #10161: unrecognized source type
'c:\users\bdforbes\appdata\local\temp\tmpu
pntzq\Release\users\bdforbes\appdata\local\temp\tmpupntzq\src.win-amd64-2.7\untitledmodule.o';
object f
ile assumed
ifort: command line warning #10161: unrecognized source type
'c:\users\bdforbes\appdata\local\temp\tmpu
pntzq\Release\users\bdforbes\appdata\local\temp\tmpupntzq\src.win-amd64-2.7\fortranobject.o';
object fi
le assumed
ifort: command line warning #10161: unrecognized source type
'c:\users\bdforbes\appdata\local\temp\tmpu
pntzq\Release\helloworld.o'; object file assumed
ifort: command line warning #10006: ignoring unknown option '/LC:\Python27\libs'
ifort: command line warning #10006: ignoring unknown option
'/LC:\Python27\PCbuild\amd64'
ifort: command line warning #10006: ignoring unknown option '/lpython27'
ifort: command line warning #10006: ignoring unknown option '/OU'
ifort: command line warning #10006: ignoring unknown option '/OT'
ifort: command line warning #10155: ignoring option '/optimize';
argument required
ifort: command line warning #10006: ignoring unknown option '/O.'
ifort: command line warning #10006: ignoring unknown option '/O\'
ifort: command line warning #10006: ignoring unknown option '/Ou'
ifort: command line warning #10006: ignoring unknown option '/On'
ifort: command line warning #10006: ignoring unknown option '/Ol'
ifort: command line warning #10006: ignoring unknown option '/Oe'
ifort: command line warning #10006: ignoring unknown option '/O.'
ifort: command line remark #10010: option '/Op' is deprecated and will
be removed in a future release.
See '/help deprecated'
Is it possible for me to provide f2py with a pre-compiled object file
or static library? I know how to produce .obj and .lib, not sure how
to turn those into .o or .a or .so.
Thanks for your help.
--
Benjamin D. Forbes
School of Physics
The University of Melbourne
Parkville, VIC 3010, Australia
More information about the f2py-users
mailing list