Click to See Complete Forum and Search --> : IcmpCreateFile() ? Link error
Sanai
April 16th, 2003, 02:07 PM
Could anyone plz tell me what file should be linked or included that the link error can be removed as this API is not working and giving a link error
i have included
#include <Ipexport.h>
#include <IcmpApi.h>
and the link error is coming again and again :(
AIPing.obj : error LNK2001: unresolved external symbol _IcmpCreateFile@0
Debug/AIPing.exe : fatal error LNK1120: 1 unresolved externals
plz help
Mick
April 16th, 2003, 02:44 PM
Originally posted by Sanai
Could anyone plz tell me what file should be linked or included that the link error can be removed as this API is not working and giving a link error
i have included
#include <Ipexport.h>
#include <IcmpApi.h>
and the link error is coming again and again :(
AIPing.obj : error LNK2001: unresolved external symbol _IcmpCreateFile@0
Debug/AIPing.exe : fatal error LNK1120: 1 unresolved externals
plz help
You need to link with icmp.lib. You can find this in the platform SDK install dir.
Misc\icmp\lib
I just add the misc dir etc... to the IDE->tools-Options->Directories for lib and include.
Beats me why it's an afterthought, I don't see why they just couldn't have stuck it in the sdk\lib dir....
jlewicki
July 5th, 2007, 08:47 AM
for searching purposes, icmp.lib is now deprecated, this took me a while to figure out. I don't know if anyone else was having this problem -- or when this problem was fixed...
May 10:
Updated iphlpapi.lib. Icmp.lib is no longer distributed since
its contents have been included in iphlpapi.lib
Updated ws2_32.lib kernel32.lib user32.lib gdi32.lib advapi32.lib
and comctl32.lib
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.