Click here to Skip to main content
12,358,497 members (62,710 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi,
I need help with my face recognition program.
I got these errors when i build my program:

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)    

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)

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 1-Aug-11 21:45pm
Updated 1-Aug-11 23:59pm
v4
Comments
SafarTimura 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.
SAKryukov 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 2 Aug 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100