Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET
From: Linda Yang (hyang_at_signalogic.com)
Date: 02/04/04
- Next message: Maxim S. Shatskih: "Re: WaitCommEvent"
- Previous message: Rohit Raina [MS]: "Re: Howto get MAC addresses of all NICs prior to their bindings"
- In reply to: Gary G. Little: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Next in thread: David J. Craig: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Reply: David J. Craig: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Reply: Mark Roddy: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 04 Feb 2004 00:52:07 GMT
Gary G. Little wrote:
> You should have the latest DDK installed. That includes the "blessed"
> compiler and tools for driver development. You will have wither manually set
> your executable paths in Visual Studio to the path of the WinDDK 3790
> compiler, or download DDKBUILD and change your VS build lines to use
> DDKBUILD. The latter is by far the least painful and the recommended route.
>
Thanks for replying. I did some more research. I found this paragraph
in MSDN with an article titled New in the DDK for Windows XP:
"A number of important changes have been made to the Windows DDK build
environment. For one, the Windows DDK now includes a complete set of
tools for building drivers. Microsoft® Visual C++® is no longer required
to be installed to use the DDK. Use of the included tools for all
Windows 2000 and Windows XP drivers is expected within the shipping
build environment. This version of the Windows DDK does not support
building Windows XP or Windows 2000 drivers using a version of Microsoft
Visual C++ earlier than the one supplied with the DDK. Attempts to use
an incorrect version of Visual C++ will result in the following error
message from the compiler:
error C1189: #error : Compiler version not supported by Windows DDK
This requirement is due to the reliance on many new features within this
tool set for proper functioning of the include build environment. The
compiler, linker, and supporting files, such as C Run-Times (CRTs),
should be considered an atomic unit within the build environment. It is
likely that mixing the supporting tool files of Visual C++ versions 5 or
6 with those in this DDK release, which are based on the new Visual C++
version 7 code base, will result in errors in the binaries. Using the
provided build environment and build tools is thus strongly recommended
to ensure generation of valid binaries."
It's unfortunate that Microsoft no longer allow you to use Visual Studio
to build the device drivers, at least they try to make it difficult. I
had all my projects set up to compile under Visual Studio, I will make
an attempt to change my VS build lines. Since I have never done this
before, should I change it in the project file where: CPP=cl.exe to
build.exe or do it in the custom build. What about the linker?
Thanks again for the pointers.
Linda
- Next message: Maxim S. Shatskih: "Re: WaitCommEvent"
- Previous message: Rohit Raina [MS]: "Re: Howto get MAC addresses of all NICs prior to their bindings"
- In reply to: Gary G. Little: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Next in thread: David J. Craig: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Reply: David J. Craig: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Reply: Mark Roddy: "Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|