none
[WFP] Windows Filtering Platform Sample fails to build with Visual Studio 2015 RRS feed

  • Question

  • when i tried to build WFPSamplerCalloutDriver it could not link to Syslib/WFPSampler.lib, in Additional Dependencies it has .\..\syslib\$(IntDir)\WFPSampler.lib, but still had these error:

    2>  Generating Code...
    2>CompletionFunctions_BasicPacketModificationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>CompletionFunctions_BasicStreamInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>CompletionFunctions_PendAuthorizationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>CompletionFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>ClassifyFunctions_PendAuthorizationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>ClassifyFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>CompletionFunctions_AdvancedPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>CompletionFunctions_BasicPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>ClassifyFunctions_AdvancedPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketModificationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>ClassifyFunctions_BasicStreamInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprClassifyDataDestroyLocalCopy(struct CLASSIFY_DATA_ * *)" (?KrnlHlprClassifyDataDestroyLocalCopy@@YAXPEAPEAUCLASSIFY_DATA_@@@Z)
    2>CompletionFunctions_BasicPacketModificationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>CompletionFunctions_BasicStreamInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>CompletionFunctions_PendAuthorizationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>CompletionFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_PendAuthorizationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>CompletionFunctions_AdvancedPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>CompletionFunctions_BasicPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_AdvancedPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketModificationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_BasicStreamInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprInjectionDataDestroy(struct INJECTION_DATA_ * *)" (?KrnlHlprInjectionDataDestroy@@YAXPEAPEAUINJECTION_DATA_@@@Z)
    2>ClassifyFunctions_PendAuthorizationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>ClassifyFunctions_PendEndpointClosureCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>ClassifyFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>ClassifyFunctions_AdvancedPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketModificationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>ClassifyFunctions_BasicStreamInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprDPCDataDestroy(struct DPC_DATA_ * *)" (?KrnlHlprDPCDataDestroy@@YAXPEAPEAUDPC_DATA_@@@Z)
    2>NotifyFunctions_BasicCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>NotifyFunctions_FastCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>NotifyFunctions_PendCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>NotifyFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_PendAuthorizationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_PendEndpointClosureCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_ProxyCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>NotifyFunctions_AdvancedCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_AdvancedPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_BasicPacketModificationCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_BasicStreamInjectionCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprWorkItemDataDestroy(struct WORKITEM_DATA_ * *)" (?KrnlHlprWorkItemDataDestroy@@YAXPEAPEAUWORKITEM_DATA_@@@Z)
    2>ClassifyFunctions_PendAuthorizationCallouts.obj : error LNK2019: unresolved external symbol "void __cdecl KrnlHlprPendDataDestroy(struct PEND_DATA_ * *)" (?KrnlHlprPendDataDestroy@@YAXPEAPEAUPEND_DATA_@@@Z) referenced in function "void __cdecl ClassifyPendAuthorization(struct FWPS_INCOMING_VALUES0_ const *,struct FWPS_INCOMING_METADATA_VALUES0_ const *,void *,void const *,struct FWPS_FILTER2_ const *,unsigned __int64,struct FWPS_CLASSIFY_OUT0_ *)" (?ClassifyPendAuthorization@@YAXPEBUFWPS_INCOMING_VALUES0_@@PEBUFWPS_INCOMING_METADATA_VALUES0_@@PEAXPEBXPEBUFWPS_FILTER2_@@_KPEAUFWPS_CLASSIFY_OUT0_@@@Z)
    2>ClassifyFunctions_PendEndpointClosureCallouts.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprPendDataDestroy(struct PEND_DATA_ * *)" (?KrnlHlprPendDataDestroy@@YAXPEAPEAUPEND_DATA_@@@Z)
    2>NotifyFunctions_FlowDelete.obj : error LNK2001: unresolved external symbol "void __cdecl KrnlHlprPendDataDestroy(struct PEND_DATA_ * *)" (?KrnlHlprPendDataDestroy@@YAXPEAPEAUPEND_DATA_@@@Z)
    2>ClassifyFunctions_ProxyCallouts.obj : error LNK2019: unresolved external symbol "void __cdecl KrnlHlprRedirectDataDestroy(struct REDIRECT_DATA_ * *)" (?KrnlHlprRedirectDataDestroy@@YAXPEAPEAUREDIRECT_DATA_@@@Z) referenced in function "void __cdecl ClassifyProxyByALERedirect(struct FWPS_INCOMING_VALUES0_ const *,struct FWPS_INCOMING_METADATA_VALUES0_ const *,void *,void const *,struct FWPS_FILTER2_ const *,unsigned __int64,struct FWPS_CLASSIFY_OUT0_ *)" (?ClassifyProxyByALERedirect@@YAXPEBUFWPS_INCOMING_VALUES0_@@PEBUFWPS_INCOMING_METADATA_VALUES0_@@PEAXPEBXPEBUFWPS_FILTER2_@@_KPEAUFWPS_CLASSIFY_OUT0_@@@Z)
    2>NotifyFunctions_FlowDelete.obj : error LNK2019: unresolved external symbol "long __cdecl KrnlHlprFlowContextDestroy(struct FLOW_CONTEXT_ * *)" (?KrnlHlprFlowContextDestroy@@YAJPEAPEAUFLOW_CONTEXT_@@@Z) referenced in function "void __cdecl NotifyFlowDeleteNotification(unsigned short,unsigned int,unsigned __int64)" (?NotifyFlowDeleteNotification@@YAXGI_K@Z)
    2>WFPSampler.lib(HelperFunctions_ClassifyData.obj) : error LNK2019: unresolved external symbol "void __cdecl KrnlHlprFwpsIncomingMetadataValuesDestroyLocalCopy(struct FWPS_INCOMING_METADATA_VALUES0_ * *)" (?KrnlHlprFwpsIncomingMetadataValuesDestroyLocalCopy@@YAXPEAPEAUFWPS_INCOMING_METADATA_VALUES0_@@@Z) referenced in function "void __cdecl KrnlHlprClassifyDataReleaseLocalCopy(struct CLASSIFY_DATA_ *)" (?KrnlHlprClassifyDataReleaseLocalCopy@@YAXPEAUCLASSIFY_DATA_@@@Z)
    2>WFPSampler.lib(HelperFunctions_ClassifyData.obj) : error LNK2019: unresolved external symbol "void __cdecl KrnlHlprFwpsStreamCalloutIOPacketDestroyLocalCopy(struct FWPS_STREAM_CALLOUT_IO_PACKET0_ * *)" (?KrnlHlprFwpsStreamCalloutIOPacketDestroyLocalCopy@@YAXPEAPEAUFWPS_STREAM_CALLOUT_IO_PACKET0_@@@Z) referenced in function "void __cdecl KrnlHlprClassifyDataReleaseLocalCopy(struct CLASSIFY_DATA_ *)" (?KrnlHlprClassifyDataReleaseLocalCopy@@YAXPEAUCLASSIFY_DATA_@@@Z)
    2>x64\Release\WFPSamplerCalloutDriver.sys : fatal error LNK1120: 9 unresolved externals
    ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

    Can anyone help?

    Thanks!

    Wednesday, April 26, 2017 2:53 AM

All replies