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 8039363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:32:45+00:00 2026-06-05T03:32:45+00:00

I have asked a similar question on How to link and use OpenCV headers?

  • 0

I have asked a similar question on How to link and use OpenCV headers?, but no luck so far. So I decided to ask a new, more specific question.

What OpenCV-specific folders or files do I need to include in my C++ project — and how I might include them? I have installed OpenCV 2.4.0 on my C:\ drive. I’ve looked at the tutorials in openCV’s website, but they are for an older version (OpenCV 2.1) and refer to non-existent files like objdetect.hpp (for example).

  • 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-05T03:32:47+00:00Added an answer on June 5, 2026 at 3:32 am

    See http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to

    Add these to your stdafx.h

    #include <opencv2/core/core.hpp>        // cv::Mat etc, always need this
    #include <opencv2/imgproc/imgproc.hpp>  // all the image processing functions
    #include <opencv2/highgui/highgui.hpp>  // Display and file I/O
    

    Assuming you have set OPENCV_DIR to the place you put opencv eg. OPENCV_DIR=c:\opencv2.4\opencv

    Then set the VC++ directories in project settings to
    Include add $(OPENCV_DIR)\include and to Library add $(OPENCV_DIR)\lib

    Then in the “linker Input” add opencv_core240.lib (opencv_core240D.lib for debug) opencv_imgproc240.lib and opencv_highgui240.lib etc

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

Sidebar

Related Questions

I have asked a question similar to this in the past but this is
Somebody asked similar question not long ago. But nobody answered comprehensively. Assume I have:
I have asked a similar question to this one already but I think it
I have asked a similar question previously but it was never resolved so here
I've asked a similar question before, but I've got a more specific question about
i have asked a similar question earlier, but this time i need a method
I have asked a similar question to this but for GMail and I was
Ok, I have previously asked a similar question to this but it was voted
I've asked a similar question before, but I've done some more research and this
I have asked a similar question but the answers didn't really help me in

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.