none
build -cZg does not work RRS feed

  • Question

  • I have a batch file for compiling a service application.

    The batch file uses the 'build -cZg' command. But

    when I run it in the console directly I get the following error :

    "build not recognized as an internal command"

    I also tried to search for a possible 'build.exe' in my C drive but

    i did not find any.

    I am using Windows7, Visual Studio Pro 2012

    Any help is appreciated

    Saturday, July 27, 2013 7:05 PM

Answers

  • Which WDK are you using?  If you are using a Win7 WDK then you need to run setenv.bat to setup the environment if you are in a normal cmd window.  If you are using the Win8 WDK you need to run msbuild on the project, since BUILD was for the earlier environments only.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Saturday, July 27, 2013 7:15 PM
  • You will need to install whichever version of the Windows Driver Kit (WDK) was used to develop your service application. If you don't know which version it was, try the Win7 WDK http://www.microsoft.com/en-us/download/details.aspx?id=11800

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting.

    Saturday, July 27, 2013 8:53 PM
    Moderator

All replies

  • Which WDK are you using?  If you are using a Win7 WDK then you need to run setenv.bat to setup the environment if you are in a normal cmd window.  If you are using the Win8 WDK you need to run msbuild on the project, since BUILD was for the earlier environments only.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Saturday, July 27, 2013 7:15 PM
  • You will need to install whichever version of the Windows Driver Kit (WDK) was used to develop your service application. If you don't know which version it was, try the Win7 WDK http://www.microsoft.com/en-us/download/details.aspx?id=11800

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting.

    Saturday, July 27, 2013 8:53 PM
    Moderator
  • Thanks Guys.

    That Helped.  Actually I am using WDK.

    However I have one more query regarding my build.

    Initially i had many undefined reference errors. However when I

    supplied the following libraries it solved the problem

       1. wbemuuid.lib

       2. Setupapi.lib

       3. comsupp.lib

    My question is that how can I ensure that

    these additional dependencies are already taken care of

    when I create the project. (I have created my project as a console

    application )

    Also my another question is that : myapp is a service and has to communicate with the service

    manager. Is it okay to create a console project for that purpose.

    Sunday, July 28, 2013 7:36 AM