I just wanted to thank you guys for helping.
I turns out that if I take the declaration ExSystemTimeToLocalTime() out
of ntddk.h, and put it in my CPP file, it compiles fine, but won’t link.
What I then did was to put an
extern “C”
block around it so the name gets mangled (or non-mangled in this case)
correctly for the linker, and sure enough, the linker found it in
ntoskrnl.lib.
Thanks again!
Cheers,
Jeff Long
President
Granite Precision Inc.
Get rid of your local definition in your header and wrap the #include of
ntddk.h / wdm.h in an extern “C” like this
extern “C” {
#include <ntddk.h> // or wdm.h if that is what you are using
}
And all symbols exported by ntos will then be resolved properly
D
This posting is provided “AS IS” with no warranties, and confers no
rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeff Long
Sent: Thursday, July 31, 2003 9:50 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] ExSystemTimeToLocalTime() not found problem SOLVED
I just wanted to thank you guys for helping.
I turns out that if I take the declaration ExSystemTimeToLocalTime() out
of ntddk.h, and put it in my CPP file, it compiles fine, but won’t link.
What I then did was to put an
extern “C”
block around it so the name gets mangled (or non-mangled in this case)
correctly for the linker, and sure enough, the linker found it in
ntoskrnl.lib.
Thanks again!
Cheers,
Jeff Long
President
Granite Precision Inc.
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</ntddk.h>