The Link error occurs, indicating that the lplpapi. Lib (vc6.0) cannot be found)

Source: Internet
Author: User

Start the second network job and want to run the sample program given by Winpcap

Install the Winpcap driver and restart it. Run the command after setting the wpdpack directory in VC include and Lib.

The Link error is reported. The iphlpapi. Lib cannot be found. The link path of this library is not set, so it cannot be used.

Search answers online

1. The best solution is to find a platformsdk for Internet installation on Microsoft's website (about 140 MB)

2. By default, the Platform SDK is installed in vc2003 and vc2005, and these two files will be included in the SDK,

Vc6 users need to install Platform SDK for Internet by themselves, about MB

Search my computer. E: "Program Files" Microsoft platform SDK for Windows XP SP2 "LIB contains the lplpapi.

It seems that my SDK is installed

So in vc6.0

Tools-> Option-> directories, add path e to library files: "Program Files" Microsoft platform SDK for Windows XP SP2 "lib

Add path E: "Program Files" Microsoft platform SDK for Windows XP SP2 "include

You can.

If an error occurs

E:"Netmanage2" platformsdk "include"Ipexport. h(39): Error C2371:'In6 _ADDR':Redefinition; Different Basic Types
??????? C:"Program Files" Microsoft Visual Studio "vc98" include "ws2tcpip. H (68):See Declaration'In6 _ADDR'

Or it may be :& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (282) : ErrorC2146 :Syntax Error :Missing '; 'before identifier 'reserved'
E :& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (282) : ErrorC2501 :'Long _ PTR' :Missing storage-class or type specifiers
E :& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (282) : ErrorC2501 :'Reserved' :Missing storage-class or type specifiers
E :& Quot; netmanage2 & quot; platformsdk & quot; Include & quot; Ras. H (722) : ErrorC2065 :'Long _ PTR' :Undeclared identifier is because platform SDK is often used and Vc has its own SDK. The two sdks conflict with each other. In this case, you only need to select the workspace and then clean, put the psdk in the include statement at the top of the page for a long time. If you do not clean the file, you only need to put the psdk at the top of the page. If you do not clean the file, the second error will be reported.

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.