unresolved external symbol using DDK.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: unresolved external symbol using DDK.

  1. #1
    Join Date
    Mar 2007
    Posts
    13

    unresolved external symbol using DDK.

    Hi,
    I am currently trying to get into driver development and when using the source code for the project found here I get the following linking errors

    Code:
    entry.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/DRIVER' specification
    entry.obj : error LNK2019: unresolved external symbol __imp__IoCreateSymbolicLink referenced in function _DriverEntry
    entry.obj : error LNK2019: unresolved external symbol __imp__IoCreateDevice referenced in function _DriverEntry
    entry.obj : error LNK2019: unresolved external symbol __imp__IoDeleteDevice referenced in function _Example_Unload
    entry.obj : error LNK2019: unresolved external symbol __imp__IoDeleteSymbolicLink referenced in function _Example_Unload
    functions.obj : error LNK2019: unresolved external symbol __imp__MmMapLockedPagesSpecifyCache referenced in function _Example_WriteDirectIO
    Debug\Drive.exe : fatal error LNK1120: 5 unresolved externals
    I was wondering if anyone could help me with this. I am using VC++ 2005 sp1 version 8 (if that will help any) also using the newest DDK.

    [attached is the full build log.]
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: unresolved external symbol using DDK.

    Add "ntoskrnl.lib hal.lib" to Project Properties -> Configuration Properties -> Linker -> Input -> Additional Dependandies.
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Mar 2007
    Posts
    13

    Re: unresolved external symbol using DDK.

    Quote Originally Posted by Krishnaa
    Add "ntoskrnl.lib hal.lib" to Project Properties -> Configuration Properties -> Linker -> Input -> Additional Dependandies.
    Thank you for your help but I still have the errors. I also made sure I was linking to the lib files, so those are not the cause of it, in less I am doing something wrong.
    Last edited by Valeranth; April 9th, 2007 at 07:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center