Hello NG,
I'm struggling and googling around, but without big success. I am
trying to build a fortran extension with F2PY, and it seems to me an
impossible task. At the moment, I have the following installed:
- Latest f2py
- MS Visual Studio 2003
- Python 2.4
- Intel Visual Fortan 9.1
I keep getting errors on undefined symbols/repeated symbols, like:
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(winx fltr.obj) : error LNK2005: ___CppXcptFilte r already defined in MS
VCRT.lib(MSVCR7 1.dll)
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(winx fltr.obj) : warning LNK4006: ___CppXcptFilte r already defined in
MSVCRT.lib(MSVC R71.dll); second definition ignored
Creating library c:\temp\tmpxkqq e-\Release\temp\t mpxkqqe-\src\untitled.l ib an
d object c:\temp\tmpxkqq e-\Release\temp\t mpxkqqe-\src\untitled.e xp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; us
e /NODEFAULTLIB:li brary
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us
e /NODEFAULTLIB:li brary
untitledmodule. obj : error LNK2001: unresolved external symbol _readunsmry_
untitledmodule. obj : error LNK2001: unresolved external symbol _readministeps_
untitledmodule. obj : error LNK2001: unresolved external symbol _readsmspec_
untitledmodule. obj : error LNK2001: unresolved external symbol _readdimens_
libifcoremt.lib (libifcoremain. obj) : error LNK2019: unresolved external symbol _
MAIN__ referenced in function _main
..\untitled.pyd : fatal error LNK1120: 5 unresolved externals
error: Command ""c:\Progra m Files\Microsoft Visual Studio .NET 2003\Vc7\bin\li nk
..exe" /DLL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Prog ram Files\Intel\Com piler\For
tran\9.1\ia32\l ib" /LIBPATH:C:\Pyth on24\libs /LIBPATH:C:\Pyth on24\PCBuild /LIBPA
TH:C:\Python24\ libs /LIBPATH:C:\Pyth on24\PCBuild /EXPORT:initunti tled c:\temp\tm
pxkqqe-\Release\temp\t mpxkqqe-\src\untitledmo dule.obj c:\temp\tmpxkqq e-\Release\
temp\tmpxkqqe-\src\fortranobj ect.obj c:\temp\tmpxkqq e-\Release\readsm spec.o /OUT
:.\untitled.pyd /IMPLIB:c:\temp\ tmpxkqqe-\Release\temp\t mpxkqqe-\src\untitled.l i
b" failed with exit status 1120
Well, I would like to ask: is there *any* possible combination of
C/Fortran compilers that actually *works* with Python2.4 on WIndows
XP? Does anyone have some suggestion?
Thank you very much.
Andrea.
--
"Imaginatio n Is The Only Weapon In The War Against Reality."
I'm struggling and googling around, but without big success. I am
trying to build a fortran extension with F2PY, and it seems to me an
impossible task. At the moment, I have the following installed:
- Latest f2py
- MS Visual Studio 2003
- Python 2.4
- Intel Visual Fortan 9.1
I keep getting errors on undefined symbols/repeated symbols, like:
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0 init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(winx fltr.obj) : error LNK2005: ___CppXcptFilte r already defined in MS
VCRT.lib(MSVCR7 1.dll)
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(crt0 init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.li
b(cinitexe.obj) ; second definition ignored
LIBCMT.lib(winx fltr.obj) : warning LNK4006: ___CppXcptFilte r already defined in
MSVCRT.lib(MSVC R71.dll); second definition ignored
Creating library c:\temp\tmpxkqq e-\Release\temp\t mpxkqqe-\src\untitled.l ib an
d object c:\temp\tmpxkqq e-\Release\temp\t mpxkqqe-\src\untitled.e xp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; us
e /NODEFAULTLIB:li brary
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us
e /NODEFAULTLIB:li brary
untitledmodule. obj : error LNK2001: unresolved external symbol _readunsmry_
untitledmodule. obj : error LNK2001: unresolved external symbol _readministeps_
untitledmodule. obj : error LNK2001: unresolved external symbol _readsmspec_
untitledmodule. obj : error LNK2001: unresolved external symbol _readdimens_
libifcoremt.lib (libifcoremain. obj) : error LNK2019: unresolved external symbol _
MAIN__ referenced in function _main
..\untitled.pyd : fatal error LNK1120: 5 unresolved externals
error: Command ""c:\Progra m Files\Microsoft Visual Studio .NET 2003\Vc7\bin\li nk
..exe" /DLL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Prog ram Files\Intel\Com piler\For
tran\9.1\ia32\l ib" /LIBPATH:C:\Pyth on24\libs /LIBPATH:C:\Pyth on24\PCBuild /LIBPA
TH:C:\Python24\ libs /LIBPATH:C:\Pyth on24\PCBuild /EXPORT:initunti tled c:\temp\tm
pxkqqe-\Release\temp\t mpxkqqe-\src\untitledmo dule.obj c:\temp\tmpxkqq e-\Release\
temp\tmpxkqqe-\src\fortranobj ect.obj c:\temp\tmpxkqq e-\Release\readsm spec.o /OUT
:.\untitled.pyd /IMPLIB:c:\temp\ tmpxkqqe-\Release\temp\t mpxkqqe-\src\untitled.l i
b" failed with exit status 1120
Well, I would like to ask: is there *any* possible combination of
C/Fortran compilers that actually *works* with Python2.4 on WIndows
XP? Does anyone have some suggestion?
Thank you very much.
Andrea.
--
"Imaginatio n Is The Only Weapon In The War Against Reality."