Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET

From: David J. Craig (SeniorDriversWriter_at_shogunyoshimuni.com.net)
Date: 02/04/04


Date: Tue, 3 Feb 2004 20:35:02 -0500

Did you try a Google search on 'DDKBUILD'? If so, why the questions
below. If not, try it. I don't use it because I detest using Visual
Studio for drivers. I use CodeWright and even use it with applications
that I build using Visual Studio. When Microsoft eliminated Brief
emulation for Visual Studio, my decision became real obvious and simple.

"Linda Yang" <hyang@signalogic.com> wrote in message
news:XmXTb.614$y55.225118420@newssvr11.news.prodigy.com...
> 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
>
>
>
>



Relevant Pages

  • Re: Win DDK 3790 cannot compile with VS 6.0, but linking error with VS. NET
    ... > compiler and tools for driver development. ... "A number of important changes have been made to the Windows DDK build ... Windows 2000 and Windows XP drivers is expected within the shipping ...
    (microsoft.public.development.device.drivers)
  • Re: DDKBuild ISSUE with WINDDK...
    ... My combination right now is Windows Server 2003 DDK and VC++ 6.0 and I'm ... > This builds like a champ if you use the Windows 2000 Build Environment of ...
    (microsoft.public.development.device.drivers)
  • Re: DDKBuild ISSUE with WINDDK...
    ... My combination right now is Windows Server 2003 DDK and VC++ 6.0 and I'm ... > This builds like a champ if you use the Windows 2000 Build Environment of ...
    (microsoft.public.win32.programmer.kernel)
  • Re: DDKBuild ISSUE with WINDDK...
    ... My combination right now is Windows Server 2003 DDK and VC++ 6.0 and I'm ... > This builds like a champ if you use the Windows 2000 Build Environment of ...
    (microsoft.public.vc.debugger)
  • Re: Windows Compilation Madness
    ... There is a compiler, ... the compilation problems that arise in the Windows environment? ... Can a Windows expert confirm my understanding that: ... MinGW uses the VC6 runtime libraries, but the compilers ...
    (comp.lang.ruby)