[Compuware Corporation] [Compuware NuMega home page]                [NuMega Lab]
[teal]

 [DriverStudio]    [Image][Image]
   Home
 [Driver Products]        Driver Technical Tips
   DriverStudio          Eliminate that annoying "Last line incomplete" message from BUILD
   DriverBundle
   Previews              Anyone who builds NT drivers with the DDK's BUILD utility has seen output
   Compatibility         something like this:
 [Downloads]  
                          BUILD: Compile and Link for i386
 Wizards                  BUILD: Loading d:\ddknt\build.dat...
   Utilities             BUILD: Computing Include file dependencies:
   NT source             BUILD: c:\program files\devstudio\vc\include\ws2atm.h(440): last line incomplete
 examples
   VxD source            The last line of the above is a warning from BUILD indicating that the terminating
 examples                 character of the include file is not a newline. The reason that BUILD warns about
   WDM source            this is that if the last line of the include file is a #define, then some
 examples                 preprocessors may continue the definition with subsequent characters from the
 [Resources]             input stream. This could lead to a very nasty bug.
 Technical papers
   Useful links          To remove the potential for such a bug, and to get rid of the annoying warning
   Technical tips        message, you can download Vireo's LastLine utility. LastLine is a console app that
 [Support]               you can run to clean up any .h files that are not correctly terminated.
 Support                  Here is the command syntax for LastLine:
   Knowledge base
   Problem               lastline [-s -r -q -x ] directory-path
 submission                -s  recurse subdirectories
   Product                -q  quiet
 registration              -r  report offending files without modifying
   Release notes          -x  exit on error
 [Shop NuMega]  
 Buy it!                  Example:
   Price list
   How to buy            C:\test> lastline -s d:\mstools
   Sales offices
                          Sample output

 [Y2K Compliance]         D:\TOOLS> lastline -s d:\mstools
                          lastline v1.0 - fixes "Last line incomplete" errors from BUILD
                          Copyright (c) 1998 Vireo Software, Inc.
 [More information]
                          lastline: modifying d:\mstools\include\PDH.H
                          lastline: modifying d:\mstools\include\RASSAPI.H
                          lastline: modifying d:\mstools\include\WS2ATM.H
                          lastline: 218 include files scanned, 3 files modified

                          You can view the source code for LastLine, and download the program.

                          Back to technical tip start page.

  DriverCentral  DriverStudio  Free downloads  Resources  Support and
                          Services  Shop NuMega
     Compuware NuMega  Tel: +1 603 578-8400  Updated: 9 August 1999 
                      Problems? Contact our webmaster.
