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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:28:18+00:00 2026-06-06T16:28:18+00:00

I use Eclipse CDT for developing C with mingw. I also add opencv libary.

  • 0

I use Eclipse CDT for developing C with mingw. I also add opencv libary. Everything compiled without problems. But if I start the compiled application (using a opencv-function) there is an init error. If I only include the .h-files without using a function it works.

The code:

#include <opencv2/opencv.hpp>
using namespace std;

int main() {
    cout << "!!!Streaming!!!" << endl; // prints !!!Streaming!!!
    // Nothing but create a window
    cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE);
    cvMoveWindow("mainWin", 100, 100);
    cvWaitKey(0);
    return 0;
}

Error-Image: https://i.stack.imgur.com/zdmT7.png

If I do not use a cv.. – function there will be no init error. Even if I include opencv2/opencv.hpp

I do not have an idea how it works.

Hope you can help.

  • 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-06T16:28:20+00:00Added an answer on June 6, 2026 at 4:28 pm

    I found the solution. The opencv-dll-files for mingw are damaged. I rename the visualstudio dlls to the names of the mingw-dlls and put it directly to in the exe folder and it works.

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

Sidebar

Related Questions

I'm trying to use SendInput() on Windows but I'm building under MinGW using Eclipse
Need your help: I want to use Eclipse CDT and QT without creating a
I am attempting to use the gdb/mi debugger in the Eclipse CDT version 6.02.
My dev environment is windows xp, eclipse 3.3, cdt 4.0.3, mingw 3.17 (in fact
I have a comment template in Eclipse (CDT) that I use for function calls
I am developing under Windows, and using Eclipse with CDT to develop C++ applications.
How to set Eclipse CDT to use GCC-4 instead of GCC? I'm asking this
I'm trying to use Eclipse CDT's headlessbuild feature for integrating Eclipse with TeamCity. I
I'm trying to use Eclipse CDT on Ubuntu for C++ development. I'm working on
I would like to remotely debug a C++ application. I use Eclipse CDT Helios

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.