Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
I need help with my face recognition program.
I got these errors when i build my program:

VB
error LNK2019: unresolved external symbol "public: virtual void __thiscall cv::HOGDescriptor::setSVMDetector(class std::vector<float,class std::allocator<float> > const &)" (?setSVMDetector@HOGDescriptor@cv@@UAEXABV?$vector@MV?$allocator@M@std@@@std@@@Z) referenced in function "int __cdecl ppledetect(void)" (?ppledetect@@YAHXZ)    


VB
error LNK2001: unresolved external symbol "public: virtual void __thiscall cv::HOGDescriptor::write(class cv::FileStorage &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?write@HOGDescriptor@cv@@UBEXAAVFileStorage@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)


VB
error LNK1120: 11 unresolved externals


I got 11 these kinds of errors.
3 of error LNK2019 while 8 of error LNK2001 and 1 of error LNK1120.
Why is this happening?
Can someone pls help me?
Thanks.
Posted
Updated 1-Aug-11 23:59pm
v4
Comments
Guyverthree 2-Aug-11 4:12am    
Check your header files are in order and then check that you have the required libarays in the additional include directories in the properties.

Linker errors are caused because the linker cannot find either a function definition or the symbol is unknown.
Sergey Alexandrovich Kryukov 2-Aug-11 4:28am    
Not enough information to help you more than Safar suggested, but I would say your not quite ready to get to such complex topics as face recognition. I would be very glad to be wrong.
--SA

1 solution

One forgotten or mistyped include, definition or declaration can generate many errors. The following links provide information and examples of how the errors can be generated.

Have a look at this MSDN page for LNK2019.
http://msdn.microsoft.com/en-us/library/799kze2z(v=VS.90).aspx[^]

Here is a complete list of linker errors.
http://msdn.microsoft.com/en-us/library/fzaatbst(v=VS.90).aspx[^]

You can also perform a google search for each error by entering LN2019 or LNK2001 or LNK1120 and there will be many links that may provide some insight to your issue.

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900