Author Topic: Seems can't find the implementation?  (Read 4535 times)

Offline mihasic

  • Multiple posting newcomer
  • *
  • Posts: 12
Seems can't find the implementation?
« on: December 21, 2021, 11:48:22 pm »
I try a simple OpenCV code:

int main(int argc, char *argv[])
{
    Mat img = imread("arnold_schwarzenegger.jpg");
    if(img.empty())
       return -1;
    namedWindow("arnold_schwarzenegger", WINDOW_AUTOSIZE );
    imshow("arnold_schwarzenegger", img);
    waitKey(0);
    return 0;
}

It compiles allright, but doesn't work.
On debugger, I receive a message:

In __cxa_throw () (/lib/x86_64-linux-gnu/libstdc++.so.6)
#5  0x00005555555553d4 in main (argc=1, argv=0x7fffffffe668) at /home/mikhail/CodeBlocksProjects/TryOpenCVALinux/main.cpp:15
/home/mikhail/CodeBlocksProjects/TryOpenCVALinux/main.cpp:15:372:beg:0x5555555553d4
15       namedWindow("arnold_schwarzenegger", WINDOW_AUTOSIZE );

Could anybody explain what it means or at least where I can look it up?
Thanks.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1557
Re: Seems can't find the implementation?
« Reply #1 on: December 22, 2021, 10:13:43 am »
This is an OpenCV issue, not a C::B one. Look here or here for more information.

Offline mihasic

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Seems can't find the implementation?
« Reply #2 on: December 22, 2021, 11:41:36 am »
Hi Miguel,
Thanks for your attempt to help.
Unfortunately, you didn't read my post up to the end.
The question was what the message meant or where I could look it up.
Sincerely,
mihasic.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1557
Re: Seems can't find the implementation?
« Reply #3 on: December 22, 2021, 12:09:23 pm »
I did read all your message even though it is completely OT here (because your error is a runtime one, hence not related to C::B).

Even being OT, I gave you two links so you can look up the issue. One is for Windows, because there is little information for Linux and you did not care to state your OS.

Offline mihasic

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Seems can't find the implementation?
« Reply #4 on: December 22, 2021, 03:32:34 pm »
Regret to see you don't want to to understand my question. Once again, the issue is the message, and given that it is produced by codeblocks, it is definitely codeblocks issue. As for the OS and so on, I questioned nothing about it. Once again, thanks for your attempt to help, but I have to say this attempt becomes a bit too insistent.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Seems can't find the implementation?
« Reply #5 on: December 22, 2021, 03:57:18 pm »
https://forums.codeblocks.org/index.php/topic,9996.0.html

Quote
3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.

Try running the executable from the command line!

Does it work okay?

If yes, it might be a Code::Blocks related problem. If it does not then it is not likely an Code::Blocks IDE problem.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline mihasic

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Seems can't find the implementation?
« Reply #6 on: December 22, 2021, 05:28:42 pm »
Hi stahta01,
thanks for your assistance.
Naturally, I tried it in command line (in monitor, as it is under linux mint) both in Release and Debug and it does not run ok.
I do not know who's problem it is and that is the thing that I try to understand.
Given that it is the message shown by CodeBlocks, I have to start with CodeBlocks.
I tried to search for "CodeBlocks debugger messages" but I gained nothing.
I don't really know where else to go.

Offline Commaster

  • Almost regular
  • **
  • Posts: 171
Re: Seems can't find the implementation?
« Reply #7 on: December 23, 2021, 09:50:40 am »
Given that it is the message shown by CodeBlocks, I have to start with CodeBlocks.

Please make sure to IMPORTANT! READ THIS BEFORE ASKING FOR HELP!, especially point 2.