Linking problem while building appln. developed in Visual studio 8 using visual studio6 version
hi all
I tried building a DLL developed in Visual studio 8 (VC++) using Visual Studio 6.While building the DLL some header files say iphlpapi.h is missing.Is there any possibility to get Windows sdk for intel processor from internet or what is the solution for this?
Awaiting for responses...
Regards
Geetha
[341 byte] By [
GeethaSG] at [2007-12-22]
iphlpapi.h should be in your
\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include
folder (it is there in Visual C++ 2005 Professional Edition)
hi ted
I installed the SDK specified by you.It solved my basic problem.Thank you.
but now it is giving some linker errors
--Configuration: Jpcap - Win32 Release--
Compiling...
Jpcap.c
Linking...
Creating library Release/Jpcap.lib and object Release/Jpcap.exp
Jpcap.obj : error LNK2001: unresolved external symbol _GetIfEntry@4
Jpcap.obj : error LNK2001: unresolved external symbol _GetInterfaceInfo@8
Release/Jpcap.dll : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Jpcap.dll - 3 error(s), 0 warning(s)
Can anyone help me to solve this problem?
Regards
Geetha
Now that you have the correct headers (for compilation) you also have to change your linker settings to link to iphlpapi.lib
under:
Project - Settings - Link (tab) - Object/Library modules
Hi,
I download from the link and installed sdk. I set up my VS 6.0 to include the file path. But got compile error:
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
c:\program files\microsoft sdk\include\iphlpapi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
c:\program files\microsoft sdk\include\iphlpapi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft sdk\include\iphlpapi.h(185) : error C2059: syntax error : ')'
Can you help please? Thanks.
Yan
First: Visual C++ 6.0 is no longer supported.
Second: Using Visual C++ 6.0 to compile the latest version of the Platform SDK is not guaranteed to work.
Having said that PMIB_ICMP_EX is defined in iprtrmib.h so you should ensure that this header file is being included - though on my system this header is #include'd by iphlpapi.h.