[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Cannot link IoCreateDevice

Posted on 2004-11-21
4
Medium Priority
?
513 Views
Last Modified: 2012-06-27
I am trying to build a device driver for Windows using the xp ddk.

The code compile but does not link. I am using the compiler and linker that comes with the ddk.

The linker gives the following error.
unresolved external symbol __imp__IoCreateDevice referenced

I tried all the static libraries that exports this symbol in the ddk but none of them seems to work.

Daniël
0
Comment
Question by:danielj040300
  • 3
4 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 250 total points
ID: 12641996
What libraries do you use for linking? Standard list for WDM driver is:
ntoskrnl.lib hal.lib wdm.lib wmilib.lib

If project has cpp files, all DDK #include directives should be inside of extern "C" block:

extern "C"
{
    #include <ntddk.h>
}
0
 
LVL 1

Author Comment

by:danielj040300
ID: 12642993
Thanks.
I will try it.
0
 
LVL 1

Author Comment

by:danielj040300
ID: 12643567
No it does not work.
0
 
LVL 1

Author Comment

by:danielj040300
ID: 12672162
The problem was that I tried to use my own Makefile and not the ddk makefile.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question