Hi
This is the configuration:
- OS: Windows 7 Home Premium
- WDK: 7600.16385.1
- Tool: Visual Studio 2010 + VisualDDK
While starting project, I selected Windows 7 as a wdk version.
It is compiled fine. But in linking phase I am getting errors:
- Error 18 error LNK2001: unresolved external symbol _WdmlibIoCsqInsertIrpEx@16
- Error 14 error LNK2001: unresolved external symbol _WdmlibIoCsqRemoveNextIrp@8
- Error 9 error LNK2019: unresolved external symbol _WdmlibIoCsqInitializeEx@28
.
.
.
Does this project build as a standard WDK project (i.e. with a sources
file and directly using WDK build)?
If so, the VisualDDK is your problem and you need to go read the
VisualDDK docs for how to convince it to build things correctly. From
their ‘wizards’ page it looks to me like the ‘WDF’ option is
strikingly missing and there is a recommendation to use something
called BazisLib for boilerplate PnP code. Sheesh.
Wizards are evil. There is this simple integration for visual studio
called ddkbuild.bat written by some old fart who back in '93 refused
to use notepad and a dos command shell to write windows drivers that
you can fetch from www.hollistech.com or from OSR, where this same old
fart worked for a while. it will let you use visual studio and the WDK
and not get wizarded to death by somebody else’s idea about what your
driver ought to do.
Mark Roddy
On Thu, Feb 17, 2011 at 2:21 PM, wrote:
> Hi
>
> This is the configuration:
>
> - OS: Windows 7 ?Home Premium
> - WDK: 7600.16385.1
> - Tool: Visual Studio 2010 + VisualDDK
>
> While starting project, I selected Windows 7 as a wdk version.
>
> It is compiled fine. But in linking phase I am getting errors:
>
> - Error 18 error LNK2001: unresolved external symbol _WdmlibIoCsqInsertIrpEx@16
> - Error 14 error LNK2001: unresolved external symbol _WdmlibIoCsqRemoveNextIrp@8
> - Error 9 error LNK2019: unresolved external symbol _WdmlibIoCsqInitializeEx@28
> .
> .
> .
>
>
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
And read the doc page, http://msdn.microsoft.com/en-us/library/ff549072(VS.85).aspx … it tells you exactly which lib to link against
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Mark Roddy
Sent: Thursday, February 17, 2011 11:42 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Linker Error for IoCsqInsertIrpEx - IoCsqRemoveNextIrp
Does this project build as a standard WDK project (i.e. with a sources file and directly using WDK build)?
If so, the VisualDDK is your problem and you need to go read the VisualDDK docs for how to convince it to build things correctly. From their ‘wizards’ page it looks to me like the ‘WDF’ option is strikingly missing and there is a recommendation to use something called BazisLib for boilerplate PnP code. Sheesh.
Wizards are evil. There is this simple integration for visual studio called ddkbuild.bat written by some old fart who back in '93 refused to use notepad and a dos command shell to write windows drivers that you can fetch from www.hollistech.com or from OSR, where this same old fart worked for a while. it will let you use visual studio and the WDK and not get wizarded to death by somebody else’s idea about what your driver ought to do.
Mark Roddy
On Thu, Feb 17, 2011 at 2:21 PM, wrote:
> Hi
>
> This is the configuration:
>
> - OS: Windows 7 ?Home Premium
> - WDK: 7600.16385.1
> - Tool: Visual Studio 2010 + VisualDDK
>
> While starting project, I selected Windows 7 as a wdk version.
>
> It is compiled fine. But in linking phase I am getting errors:
>
> - Error 18 error LNK2001: unresolved external symbol
> _WdmlibIoCsqInsertIrpEx@16
> - Error 14 error LNK2001: unresolved external symbol
> _WdmlibIoCsqRemoveNextIrp@8
> - Error 9 error LNK2019: unresolved external symbol
> _WdmlibIoCsqInitializeEx@28 .
> .
> .
>
>
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Talk to the VisualDDK folks about this.
Thomas F. Divine
From:
Sent: Thursday, February 17, 2011 2:21 PM
To: “Windows System Software Devs Interest List”
Subject: [ntdev] Linker Error for IoCsqInsertIrpEx - IoCsqRemoveNextIrp
> Hi
>
> This is the configuration:
>
> - OS: Windows 7 Home Premium
> - WDK: 7600.16385.1
> - Tool: Visual Studio 2010 + VisualDDK
>
> While starting project, I selected Windows 7 as a wdk version.
>
> It is compiled fine. But in linking phase I am getting errors:
>
> - Error 18 error LNK2001: unresolved external symbol
> _WdmlibIoCsqInsertIrpEx@16
> - Error 14 error LNK2001: unresolved external symbol
> _WdmlibIoCsqRemoveNextIrp@8
> - Error 9 error LNK2019: unresolved external symbol
> _WdmlibIoCsqInitializeEx@28
> .
> .
> .
>
>
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
Yeah wizards are evil. I’m compiling with build utility.
Everything is fine.
Thanks…