Click here to Skip to main content
12,952,277 members (66,565 online)
Rate this:
Please Sign up or sign in to vote.
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?
Posted 1-Aug-11 21:45pm
Updated 1-Aug-11 23:59pm
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.

1 solution

Rate this: bad
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.[^]

Here is a complete list of linker errors.[^]

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.


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
OriginalGriff 6,239
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 2 Aug 2011
Copyright © CodeProject, 1999-2017
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