[Numpy-discussion] Byte aligned arrays

Henry Gomersall heng@cantab....
Thu Dec 20 14:50:41 CST 2012


On Thu, 2012-12-20 at 21:45 +0100, Sturla Molden wrote:
> On 20.12.2012 21:24, Henry Gomersall wrote:
> 
> > I didn't know that. It's a real pain having so many libc libs
> knocking
> > around. I have little experience of Windows, as you may have
> guessed!
> 
> Originally there was only one system-wide CRT on Windows
> (msvcrt.dll), 
> which is why MinGW linkes with that by default. But starting with the 
> release of VS2003, Microsoft decided to reserve msvcrt.dll for system 
> resources and create a libc "DLL Hell" for user apps. Visual Studio
> 2003 
> came with static and dynamic versions of the CRT library, as well as 
> single- and multithreaded ones... Then everyone building apps that
> used 
> DLLs or COM objects just had to make sure that nothing conflicted.
> And 
> for every later version of Visual Studio they have released further
> more 
> CRT versions, adding to the confusion.
> 
> Currently: The official Python 2.7 binaries are built with Visual
> Studio 
> 2008 and linked with msvcr90.dll.
> 
> MinGW has import libraries for the other CRTs Microsoft has released,
> so 
> just add -lmsvcr90 to your final linkage.
> 
> Python's distutils will control the build process for extensions 
> automatically. Adding -lmsvcr90 is one of the things that distutils
> will 
> do.

Well, I _am_ using distutils, so I should expect it to happen then.
Probably my alignment concerns are based on some previous stuff when I
was building pure C libs under Windows.

Anyway, thanks for all the assistance!

hen



More information about the NumPy-Discussion mailing list