Ntstrsafe. Lib kndis5mp. Lib solution missing

Source: Internet
Author: User

Today, an NDIS-based driver is generated using the DriverStudio wizard.ProgramWhen compilation starts, "ntstrsafe. Lib" cannot be opened, and then "kndis5mp. Lib" appears ".

Solution:
1. ntstrsafe. Lib

Drivers generated by DriverStudio are connected to ntstrsafe. lib library, but this library does not actually exist. Remove this library from the link item in the settings item of the project, and find the following line in the sources file of the project:
Targetlibs = $ (ddk_lib_path)/ntstrsafe. Lib $ (ddk_lib_path)/CSQ. Lib, and delete it directly.
Sometimes the system prompts that there is no ntstrsafe. H, # include <ntstrsafe. h> error. Just comment it out.
The above error occurs in the Windows XP operating system. I used to help others configure the development environment on the 2003 Server. As a result, I found that no such problem exists, in addition, you can use the compile button of vc6.0 for compilation, which is not applicable to Windows XP. (This method is taken from the Internet)

2. kndis5mp. Lib

First open the DriverStudio Installation File: DriverStudio \ DriverNetworks. At this time, you will find that the DriverStudio \ DriverNetworks \ lib directory is empty. In this case, kndis5mp. Lib does not exist and needs to be produced by yourself.
Go to the DriverStudio \ DriverNetworks \ source directory and find kndis64.dsp and kndislib. DSP... Kndislib. DSP is the project that produces kndis5mp. Lib. (The other is to generate kndis5pt. Lib ).Note: The compilation method here is build → batch build → ("select x86" is selected later) → rebuild all.
Go back and check that the DriverStudio \ DriverNetworks \ lib directory has kndis5mp. Lib.

Next, compile your own project file again and there should be no error.
[Thank you for your reference]
Http://blog.csdn.net/flyingtimeice/article/details/3378985
Http://bbs2.driverdevelop.com/read.php? Tid = 13463
Http://topic.csdn.net/t/20030930/15/2317916.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.