473,385 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compiling extension with Visual C++ Toolkit Compiler - MSVCR80.dll

Hi there,

I am trying to install a Python library with a C extension (the
Polygon library) and I am having a bad time. My Python version is
Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2 2006, 12:09:59)
[MSC v.1310 32 bit (Intel)] on Windows XP Pro. I have dutifully
followed the instructions here:

http://wiki.python.org/moin/Building...e_MS_C_Toolkit

i.e.,

- Installed Microsoft Visual C++ Toolkit Compiler 2003
- Installed Microsoft Platform SDK for Windows Server 2003 R2
- Installed Microsoft .NET Framework SDK, version 1.1
- setup the path, include and lib environment variables with a .bat
file, as described in the wiki document

The library seems to build correctly (producing Polygon.py and
cPolygon.pyd), but when I import it I get the following message from
python.exe: "This application has failed to start because MSVCR80.dll
was not found". I thought that this might be due to Python trying to
link against the .dll from Microsoft Visual C++ Express 2005, also
installed on my PC, instead of MSVCR71.dll. So I've removed MS Visual C
++ Express 2005, and any trace of it from my environment variables,
but that doesn't seem to change anything.

Any help would be greatly appreciated.

Regards,

alex

Jan 29 '07 #1
3 3801
al***************@yahoo.com schrieb:
The library seems to build correctly (producing Polygon.py and
cPolygon.pyd), but when I import it I get the following message from
python.exe: "This application has failed to start because MSVCR80.dll
was not found". I thought that this might be due to Python trying to
link against the .dll from Microsoft Visual C++ Express 2005, also
installed on my PC, instead of MSVCR71.dll. So I've removed MS Visual C
++ Express 2005, and any trace of it from my environment variables,
but that doesn't seem to change anything.

Any help would be greatly appreciated.
Can you find out where msvcrt.lib comes from? If you manage to copy
the linker command line, I think link.exe has a way of telling you
where it picked up the file. If that won't work, and you find multiple
copies of msvcrt.lib on your disk, you can use dumpbin /all on
each of them to find out which one is right.

Regards,
Martin
Jan 29 '07 #2
On Jan 29, 2:47 pm, alexandre_irrt...@yahoo.com wrote:
The library seems to build correctly (producing Polygon.py and
cPolygon.pyd), but when I import it I get the following message from
python.exe: "This application has failed to start because MSVCR80.dll
was not found". I thought that this might be due to Python trying to
link against the .dll from Microsoft Visual C++ Express 2005, also
installed on my PC, instead of MSVCR71.dll. So I've removed MS Visual C
++ Express 2005, and any trace of it from my environment variables,
but that doesn't seem to change anything.
Alex, I'm not familiar with the particular problem you're seeing, but
did you try building the polygon library using the gcc that's included
with the Enthought distribution?

python setup.py build_clib build_ext --inplace --compiler=mingw32
-Peter

Jan 29 '07 #3
Thanks for your answers Martin and Peter,

I figured out why python.exe was asking for MSVCR80.dll. The first
time I compiled the library, MS Visual C++ Express 2005 was used
during the build (despite my PATH pointing to MS Visual C++ Toolkit
2003). When I removed Express 2005, I forgot to remove the build
directory of my library. I've also had to remove and reinstall the C++
Toolkit, the platform SDK and the .NET Framework SDK and modify
msvccompiler.py and my environment variables according to:

http://www.vrplumber.com/programming...kit/index.html

but finally it did work.

And Peter, your solution worked perfectly. A great alternative to
installing all the MS libraries.

Cheers,

alex

Jan 30 '07 #4

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

Similar topics

6
by: Fuzzyman | last post by:
I'll post this to the image-sig as well, but the audience is a bit wider here. I've just upgraded to Python 2.4. I've installed the free microsoft optimising compiler and hacked distutils to use...
6
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
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 ...
2
by: Ney André de Mello Zunino | last post by:
Hello. I gladly learned yesterday that Microsoft was making the Visual C++ Toolkit 2003 available for free. Today, I downloaded and installed it and went on to try building some simple...
19
by: Jonathan Wilson | last post by:
Is it possible to use vcbuild with the free MS compiler toolkit, as in can someone with just the MS toolkit and no access to a copy of Visual Studio itself use vcbuild to compile a Visual Studio...
0
by: Andreas | last post by:
Extension: --------------- pyshapelib 0.3 with Python 2.4 Problem: ------------- D:\Python24\Lib\site-packages\shapelib\setup>pytest.py Traceback (most recent call last): File...
9
by: Andreas Schmitt | last post by:
I am workin on a 2 part project right now. The first part is a DLL, the second part a normal exe using that DLL. When I use the VS2005 standard setting for compiling with the Multithreaded-DLL...
3
PieCook
by: PieCook | last post by:
Error message: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Basically, I recently purchased a game programming...
6
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.