Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8770415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:33:21+00:00 2026-06-13T17:33:21+00:00

Im compiling below code snippet cv::Mat frame ; tld->processImage(frame); and Getting following linker error

  • 0

Im compiling below code snippet

cv::Mat frame ;
tld->processImage(frame);

and Getting following linker error

error LNK2019: unresolved external symbol “public: void __thiscall tld::TLD::processImage(class cv::Mat)” (?processImage@TLD@tld@@QAEXVMat@cv@@@Z) referenced in function _main

Now I have changed the code to something like this

Mat frame ;
tld->processImage(0);

and Getting below linker error

error C2664: ‘tld::TLD::processImage’ : cannot convert parameter 1 from ‘int’ to ‘cv::Mat’
No constructor could take the source type, or constructor overload resolution was ambiguous

The problem is when I call the method tld->processImage(frame) Im getting this linker error “unresolved symbol” but when I call this method with incorrect type as parameter it gives another “cannot convert parameter” error thus acknowledging the fact that method is there.

This problem occurs only with the processImage() method.
Im able to call other methods of “tld” without any problem.

Any help is appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:33:22+00:00Added an answer on June 13, 2026 at 5:33 pm

    I think you’re most likely missing a reference for cv::Mat. If the TLD class is working elsewhere it is almost certainly because you don’t have an include for cv in the place you’re making this method call.

    If you have multiple includes for cv you should add to the top of the header file;

    #ifndef CV
    #define CV
    

    And at the bottom of the file add;

    #endif
    

    This will ensure that file is only compiled once, and used to solve a lot of linker problems for me when I wrote c++ often.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When compiling the code below, I get the following error: PersonalInformation is not abstract
I am getting the following error when I am using the code below. 02-24
i'm getting the below error, When compiling the Asp.Net web deploy project Could not
compiling the code below with g++ main.cpp functions.cpp -o run gives me the error
When compiling the code below with gcc, I get an error: 'i' cannot appear
I've got error C2078 in VC2010 when compiling the code below. struct A {
Possible Duplicate: unresolved overloaded function type c++ Consider the code snippet below: #include <algorithm>
I am compiling the code below when the following erro comes up. I am
When compiling the code below with cl /c /clr /W4 the compiler says warning
When compiling my wxWidget HelloWorld application, I am getting the following errors: Warning 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.