As stated earlier the only supported build tools for the NT4 DDK are the
ones that come with VS6. As Don Burn suggested, you should freeze your NT4
functionality where it is and move forward with new functionality on
supported OS platforms (which just barely includes W2K at this point.) In
doing so you should NOT build your drivers with VS2005 but instead should
upgrade your DDK to the latest supported DDK (W2K3SP1) and build your
drivers using that DDK’s supplied toolset for the earliest rev OS release
you need to support (e.g. W2K.) You will have to rework your product build
tools, as Beverly pointed out, but in doing so you will end up with a more
maintainable and reliable build process that will work for you over future
DDK and VS releases.
=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anupam Aishwarya
Sent: Friday, July 07, 2006 3:58 AM
To: Windows System Software Devs Interest List
Subject: Re: RE: Re: Re: Re: RE: [ntdev] Driver build problem using VC 8
compiler
Thanks for all the replies! I used the -VERBOSE linker flag and I get an
output like this:
module ‘hal.lib(HAL.dll)’ unsafe for SAFESEH image.
Found _KeGetCurrentIrql@0
Referenced in **.obj
Referenced in **.obj
Referenced in …obj
Referenced in …obj
Referenced in …obj
Loaded hal.lib(HAL.dll)
.
.
Finished searching libraries
Finished pass 1
Generating non-SAFESEH image.
**fstio.obj : error LNK2019: unresolved external symbol __SEH_epilog
referenced in function _FastIoLockFunc@36
**fstio.obj : error LNK2019: unresolved external symbol __SEH_prolog
referenced in function _FastIoLockFunc@36
I am linking to the default NT4 DDK libs (HAL.lib, ntoskernel.lib,
int64.lib)
Also, just as Don suggested, we will have to review all options before
coming to a decision regarding which compiler to use and platforms to
support.
Thanks
On Thu, 06 Jul 2006 xxxxx@emc.com wrote :
Of course you are still going to get a linker error. The libraries you
are linking to don’t have the symbol you need. This was stated earlier.
Try this linker option: /VERBOSE:LIB
That will tell you what libs are being searched.
-Jeff
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anupam Aishwarya
Sent: Thursday, July 06, 2006 9:09 AM
To: Windows System Software Devs Interest List
Subject: Re: Re: Re: Re: RE: [ntdev] Driver build problem using VC 8
compiler
Tried that already… it gives the same linker error 
*********************
You’ll have to forgive me, can’t think clearly right now (or ever for
that matter). Anyhow, I just recalled an instance where try…finally
wasn’t working, but __try … __finally did. strange, m.
On Thu, 06 Jul 2006 Anupam Aishwarya wrote :
>If our attempts to build with VS 8 prove futile, we might have to
upgrade the DDK/stay with VS 6.
>I was only wondering if we could set any compiler/linker flags or make
some changes so as to work around the try-finally block (go back to VS 6
style SEH handling?)
>
>
>On Thu, 06 Jul 2006 Oliver Schneider wrote :
> > > Yes thats true. Actually my driver is part of a larger product and
the
> > > whole build env. is moving to the .Net 2005 compiler.
> > >
> > > We have removed all errors in the build process except this one.
> > > If there are no windows APIs which generate exceptions, is it
possible to
> > > wholly remove try-finally blocks and replace them with do…while
or
> > > something similar constructs?
> >Can’t you use one of the newer DDKs with NT4 compatibility? Or is NT4
compatibility even needed?
> >
> >Also, I think the problem you have is both, in the headers *and* the
libs. Since the compiler is responsible for implementing the actual
logics behind try/finally and try/except it needs some “intrinsic” (not
the usual meaning) functions which support this. You have hit this case
…
> >
> >
> >Best regards,
> >
> >Oliver
> >–
> >---------------------------------------------------
> >May the source be with you, stranger 
> >
> >ICQ: #281645
> >URL: http://assarbad.net
> >
> >—
> >Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
> >
> >To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
>
>—
>Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
>To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:>ignature-home.htm/xxxxx@Middle5?PARTNER=3> — Questions? First
>check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the
>List Server section of OSR Online at
>http://www.osronline.com/page.cfm?name=ListServer
>
>—
>Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
>To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http:ture-home.htm/xxxxx@Middle5?PARTNER=3> — Questions? First check the
Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 To
unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</http:></http:>