Hi,
I want to add some library but it can not be comipled? Here is an output:
D:\>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
D:\python setup.py install
running install
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible
binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin
installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
Thx for the help, Andy 6 2310
alf <ask@mewrote:
Hi,
I want to add some library but it can not be comipled? Here is an output:
If you don't have the needed compiler installed (in this case, VS 2003,
while it looks like your installation has VS 2005 instead), sure.
D:\>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
D:\python setup.py install
running install
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible
binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin
installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
I would think this error message is as clear as it can be, and then
some! It even gives very practical advice on how to work around the
problem. Either install VS2003, if you own it or can purchase it, or
else install mingw32 (which is free and can be downloaded) and use the
option which the error message tells you to.
Alex
Alex Martelli wrote:
I would think this error message is as clear as it can be, and then
some! It even gives very practical advice on how to work around the
problem. Either install VS2003, if you own it or can purchase it, or
else install mingw32 (which is free and can be downloaded) and use the
option which the error message tells you to.
well, instructions were clear enough for me. What is hard to get why it
could not use free M$ compiler which is presumably produces compatible
objects and libraries.
In fact I played with msvccompiler.py a little bit, get around registry
paths and was able to produce .pyo file. Then I hit some runtime lib
issues. In meantime I found precompiled probstat lib so gave up on
making msvccompiler.py compatible with VS 2008.
Bottomline - it would be nice to have such support.
--
alf
well, instructions were clear enough for me. What is hard to get why it
could not use free M$ compiler which is presumably produces compatible
objects and libraries.
This presumption is incorrect. The compiler does *not* create compatible
objects and libraries. It links with msvcr8.dll, whereas Python is
linked with mscvr71.dll; Microsoft does not support mixing CRTs.
Regards,
Martin
Martin v. Löwis wrote:
>>well, instructions were clear enough for me. What is hard to get why it could not use free M$ compiler which is presumably produces compatible objects and libraries.
This presumption is incorrect. The compiler does *not* create compatible
objects and libraries. It links with msvcr8.dll, whereas Python is
linked with mscvr71.dll; Microsoft does not support mixing CRTs.
complier is just a compiler. perhaps final linking could be somehow
tweaked to include msvcrt71 instad of 80.
complier is just a compiler. perhaps final linking could be somehow
tweaked to include msvcrt71 instad of 80.
Not easily. VS 2005 is not just a complier, it is also a rinkel,
and ships with improt librareis. The import library for msvcrt.lib
it ships with automatically links with msvcr8.dll.
You either would have to create a import library for mscvr71.dll
by hand, or you have to copy one from VS 2003 (breaking its license).
Regards,
Martin
P.S. Why does the subject say "VS 2008", anyway? That product has
not been released yet, and Microsoft is still hoping that it will
be called VS 2007.
Martin v. Löwis wrote:
You either would have to create a import library for mscvr71.dll
by hand, or you have to copy one from VS 2003 (breaking its license).
I wonder if copying the probstat.pyd from internet where I it finnaly
found is not breaking the license:-). it was my final solution.
otherwise I would probaly it somehow link. I hardly give up.
P.S. Why does the subject say "VS 2008", anyway? That product has
not been released yet, and Microsoft is still hoping that it will
be called VS 2007.
just a mistake. i am not Microsoft fan. Just happened that python app I
develop is executed on win32.
thx for all insight This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 itself. Everything you need
is available at no costs (except download hassle and installation
time). Once your system is set up properly its just a matter of
running 'python setup.py build'. No longer waiting for someone else to
build binaries and a...
|
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
Unfortunately the binary for Python-2.4 isn't available yet and I'd
hate to step back to a previous version.
I'm glad I managed to set up my XP machine to being able to compile
extensions using the VC++ toolkit which freely availbale from MS. See
|
by: stefvienna |
last post by:
Hi group,
I'm trying compiling Python-2.4.1 and it fails builing the _socket
extension with the following message:
building '_socket' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-fno-strict-aliasing -I. -I/usr/local/src/Python-2.4.1/./Include
-I/usr/local/include -I/usr/local/src/Python-2.4.1/Include
-I/usr/local/src/Python-2.4.1 -c
|
by: Sverker Nilsson |
last post by:
I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net)
has failed to compile its extension modules with a Microsoft .NET 2003
compiler under Windows 2000.
One of the problems, seems to be string constants in the C source that
contain newlines. I am using GCC on Linux so, I missed this with the
standard warning options. Compiling with -pedantic reveals 'a lot' of
places where this is a problem.
|
by: ZMY |
last post by:
Dear all,
I am a real newbie for both python and QNX, but I am still trying to
compile Numeric-24.2 under QNX4.25 with python 2.2. I got following
error message:
$ sudo python setup.py install
Password:
running install
| |
by: nazgul |
last post by:
Hi all,
In my prev post, I indicated I was using 2.5.1 on one box and 2.5p3 on the
OpenBSD box. I'm trying to build 2.5.1 on OpenBSD and I get this:
Modules/posixmodule.c:5701: error: `lstat' undeclared (first use in this
function)
I browsed the source and don't understand why I'm getting it. I'm not a
configure expert, but I did figure out that pyconfig.h has these set:
|
by: Randy.Galbraith |
last post by:
I'm investigating the possible use of Mecurial SCM as a replacement
for CVS. Mecurial is written in Python. I have a background in GNU/
Linux, Solaris, sparc and Perl. However AIX, powerpc and Python are
new to me.
--uname output--
$ uname -rvp
2 5 powerpc
--end uname output--
|
by: Colin J. Williams |
last post by:
1.I have both 2.5 and 2.6 but both
appear, under Recent Projects, as
pcbuild. It would be helpful if the
Python Version could be indicated.
2.With 2.6, Python compiles and executes
OK but various packages are not
compiled, eg sqlite3.
3.Pythonw compiles OK but not sqlite3.
4.Mike Fletcher suggests an approach
(http://www.vrplumber.com/programming/mstoolkit/)
|
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
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |