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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:41:38+00:00 2026-06-18T01:41:38+00:00

i write codes like this: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace std;

  • 0

i write codes like this:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>

using namespace std;
using namespace cv;

int main()
{
    Mat image = imread("lena.jpg");
    if(!image.data)
    {
        cout << "error" <<endl;
        return -1;
    }

    namedWindow("window");
    imshow("window",image);
    waitKey(27);
    return 0;
}

and in codeblocks 12.11 :

it cannot show the image,and the windows says

     XX.exe has stopped working
        windows is checking for a solution to the problem...

and in qtcreator 2.4.1

the result is ok.

and i tried cvImageShow both ok

a broblem of codeblocks 12.11?

  • 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-18T01:41:39+00:00Added an answer on June 18, 2026 at 1:41 am

    I fixed this problems.

    I changed the gcc version in codeblocks 12.11

    I download gcc 4.6.1 to the /Program Files/codeblocks/MinGW

    then the opencv program till not working because of missing libgcc_s_dw2-1.dll

    google the libgcc_s_dw2-1.dll and put it into /Program Files/codeblocks/MinGW/bin

    success!

    and maybe this link:OpenCV program cannot run because of missing "libgcc_s_dw2-1.dll" in Code::Block
    may help this kind of problem.

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

Sidebar

Related Questions

I have something like this: #include <iostream> namespace N { typedef std::pair<int, double> MyPair;
Is it considered proper to have code like this: #include <FILEHERE> using namespace std;
Question #1: if I have a C++ code like this #include <iostream> using namesapce
I want to write a file_handle class like this #include <stdio.h> #include <iostream> #include
I was wondering how to better write code like this so that it leverages
I occasionally write code something like this: // file1.cpp #define DO_THIS 1 #if DO_THIS
<a href=details.php?phoneid=1><img src=phone01.jpg></a> When I write the code like this it's working fine. But
In code, if I write a code line like this: GClass<Double> x = new
I'm trying to write a code that could print something like this -xv -xvv
I'm trying to write a regular expression for html code that looks like this:

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.