473,498 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiling extensions

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
0 1694

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2421
by: Sebastian Morawietz | last post by:
Hi, I'm busy porting a PHP-Extension written by the company I work for from Linux to Win32 (XP). Everything worked fine. I fixed the errors and warnings, copied the dll to the extensions...
3
3351
by: Mike C. Fletcher | last post by:
Every few months I get to working on a Python C extension (built with distutils) and discover a pointer error or the like where I'd like to be able to step into my DLL and see where the extension...
3
1759
by: Geoff Caplan | last post by:
Hi folks, Enjoying the process of picking up Python, but have come to an unexpected grinding halt. I am using the latest ActivePython release on Win2k. When I try to run python setup.py...
6
6147
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
2047
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
0
9733
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
10
4389
by: celoftis | last post by:
Using VS 2005: This morning, following the instructions here: http://ajax.asp.net/docs/overview/InstallingASPNETAJAX.aspx, I installed ASP.NET AJAX on my WinXP Pro development machine. Following...
1
3589
by: smack | last post by:
Does anyone know how to create an extension DLL for Windows. I have no problem compiling my selfdevelopt extension for Linux, but can't seem to find any relevant information on how to compile an...
6
2554
by: Christian Heimes | last post by:
inhahe schrieb: I assume you are trying to compile Python 2.5 with VS 9.0. It's not supported. Some extensions don't compile under VS 9.0 Christian
2
3580
by: eliben | last post by:
On Jun 27, 3:10 pm, eliben <eli...@gmail.comwrote: Problem solved: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.