By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,665 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Compiling extensions

P: n/a
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(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(
cinitexe.obj)
LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MS
VCRT.lib(MSVCR71.dll)
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.li
b(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.li
b(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.li
b(cinitexe.obj); second definition ignored
LIBCMT.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.li
b(cinitexe.obj); second definition ignored
LIBCMT.lib(winxfltr.obj) : warning LNK4006: ___CppXcptFilter already defined in
MSVCRT.lib(MSVCR71.dll); second definition ignored
Creating library c:\temp\tmpxkqqe-\Release\temp\tmpxkqqe-\src\untitled.lib an
d object c:\temp\tmpxkqqe-\Release\temp\tmpxkqqe-\src\untitled.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; us
e /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; us
e /NODEFAULTLIB:library

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:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link
..exe" /DLL /nologo /INCREMENTAL:NO "/LIBPATH:C:\Program Files\Intel\Compiler\For
tran\9.1\ia32\lib" /LIBPATH:C:\Python24\libs /LIBPATH:C:\Python24\PCBuild /LIBPA
TH:C:\Python24\libs /LIBPATH:C:\Python24\PCBuild /EXPORT:inituntitled c:\temp\tm
pxkqqe-\Release\temp\tmpxkqqe-\src\untitledmodule.obj c:\temp\tmpxkqqe-\Release\
temp\tmpxkqqe-\src\fortranobject.obj c:\temp\tmpxkqqe-\Release\readsmspec.o /OUT
:.\untitled.pyd /IMPLIB:c:\temp\tmpxkqqe-\Release\temp\tmpxkqqe-\src\untitled.li
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.

--
"Imagination Is The Only Weapon In The War Against Reality."

http://xoomer.virgilio.it/infinity77/
Aug 10 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.