luispedro/imread — Issue #2: Msvc9 build errors
Author: cgohlke
Created: 2012-02-29 04:59:05+00:00
State: open

Hi Luis,

thank you for creating this project! It will be very useful also for a number of other packages.

I get the following compile errors with Visual Studio 2008:

```
_imread.cpp
X:\imread-git\imread\lib/file.h(17) : error C2039: 'close' : is not a member of '`global namespace''
X:\imread-git\imread\lib/file.h(17) : error C3861: 'close': identifier not found
X:\imread-git\imread\lib/file.h(20) : error C2039: 'read' : is not a member of '`global namespace''
X:\imread-git\imread\lib/file.h(20) : error C2660: 'fd_source_sink::read' : function does not take 3 arguments
X:\imread-git\imread\lib/file.h(23) : error C2039: 'lseek' : is not a member of '`global namespace''
X:\imread-git\imread\lib/file.h(23) : error C3861: 'lseek': identifier not found
X:\imread-git\imread\lib/file.h(24) : error C2039: 'lseek' : is not a member of '`global namespace''
X:\imread-git\imread\lib/file.h(24) : error C3861: 'lseek': identifier not found
X:\imread-git\imread\lib/file.h(25) : error C2039: 'lseek' : is not a member of '`global namespace''
X:\imread-git\imread\lib/file.h(25) : error C3861: 'lseek': identifier not found
X:\imread-git\imread\lib/file.h(29) : error C2039: 'write' : is not a member of '`global namespace''
X:\imread-git\imread\lib/file.h(29) : error C2660: 'fd_source_sink::write' : function does not take 3 arguments
X:\imread-git\imread\lib/numpy.h(71) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IX:\Python27\lib\site-packages\numpy\core\include -IX:\Python27\include -IX:\Python27\PC /Tpimread/_imread.cpp /Fobuild\
temp.win32-2.7\Release\imread/_imread.obj /Zm1000" failed with exit status 2
```