|
From: Xiaofan C. <xia...@gm...> - 2010-01-19 12:02:59
|
On Mon, Jan 18, 2010 at 11:14 PM, Pete Batard <pb...@gm...> wrote: > I thought one of the latest commits made the .sln compatible with 2005 (r86 > & r87), but it looks like that's not the case. Hmm, I was probably testing an older version than that and I created my own VC2005 solution file based the VC2008 file. > I believe then that if you replace the above with the following, everything > will work as expected: > > #if defined(_MSC_VER) > #if !defined(_WIN32_WINNT_WIN7) > #define _WIN32_WINNT_WIN7 0x601 > #endif > > Then on Windows 7 platforms, people will probably need to add a #define > WINVER 0x601 in their preprocessor conf, but that's another story. > It seems the latest git version r91 does not have the above and it seems that they should not be there anyway. And both the VC2005 and VC2008 solution files are working. There is a difference though. For VC2008, I need to add one line to the "Additional Include Directories" project setting. C:\WinDDK\7600.16385.0\inc For VC2005, I need to add two lines to the "Additional Include Directories" project setting. C:\WinDDK\7600.16385.0\inc C:\WinDDK\7600.16385.0\inc\api For VC2005, if I only add the first line, it will complain missing sdkddkver.h. 1>------ Build started: Project: libusb-1.0 (static), Configuration: Debug Win32 ------ 1>Compiling... 1>descriptor.c 1>io.c 1>sync.c 1>windows_compat.c 1>windows_usb.c 1>c:\winddk\7600.16385.0\inc\api\windows.h(21) : fatal error C1083: Cannot open include file: 'sdkddkver.h': No such file or directory 1>core.c 1>Generating Code... 1>Build log was saved at "file://C:\cygwin\home\mcuee\mcu\libusb1win32\git\msvc2005\libusb-pbatard\Win32\Debug\lib\libusb-1.0\BuildLog.htm" 1>libusb-1.0 (static) - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== -- Xiaofan http://mcuee.blogspot.com |