diff options
author | Pete Batard <pbatard@gmail.com> | 2010-10-27 00:36:21 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-10-27 00:36:21 +0100 |
commit | bffd2eaf25c81915d1ea7792bbd5086364f06159 (patch) | |
tree | 257a1657b499b27b5e50f56f4784dcb882680d43 | |
parent | 801d0cf23ee0e7de8e3c11ea7f65e2f6cc25655b (diff) | |
download | libusb-bffd2eaf25c81915d1ea7792bbd5086364f06159.tar.gz |
fixed error C1001 when using DDK 64 bit .lib in VS2008
* DDK 64 bit static lib generated the following in VS2008 projects:
"fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
* http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
-rw-r--r-- | libusb/os/libusb_sources | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libusb/os/libusb_sources b/libusb/os/libusb_sources index 7bb9f89..5653476 100644 --- a/libusb/os/libusb_sources +++ b/libusb/os/libusb_sources @@ -9,7 +9,16 @@ MSC_WARNING_LEVEL=/W3 USE_MSVCRT=1 INCLUDES=..;..\..\msvc;$(DDK_INC_PATH) -C_DEFINES = $(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD +C_DEFINES= $(C_DEFINES) $(LIBUSB_DEFINES) /DDDKBUILD + +# http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/ +# prevents the following error when using the 64 bit static lib with Visual Studio 2010: +# "fatal error C1001: An internal error has occurred in the compiler. +# (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)" +# and the following with Visual Studio 2010: +# "fatal error C1047: The object or library file 'libusb-1.0.lib' was created with +# an older compiler than other objects; rebuild old objects and libraries" +USER_C_FLAGS=/GL- TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib |