Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who can get fid of this error?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
In my program I wrote:
In NSDTaskEngin.cpp

void nsm::cp::NSDTaskEngin::analysis_begin(u_char* args)
{
pcap_loop(pd,-1,analysis_packet,args);//a fuction of
pcap lib
}

In NSDTaskEngin.h
void analysis_packet(u_char*, const struct pcap_pkthdr*,const u_char* );

The error is:
NSDTaskEngin.cpp:In method 'void nsm::cp::NSDTaskEngin::analysis_begin(u_char *)':
NSDTask.cpp:109:no mathches converting function 'analysis_packet' to type 'void(*)(u_char* ,const struct pcap_pkthdr *,const u_char*)'
NSDTaskEngin.h:30 candidates are:vod
nsm::cp::NSDTaskEngin::analysis_pcaket(u_char* ,const pcap_pkthdr*,const u_char*)

if you know.please let me know.

 
Check your error closely: it looks like you misspelled 'packet' - it has analysis_pcaket (note the spelling) as the "candidate" function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top