Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Code::Blocks Build error.?

I am a begginer in coding (I'm coding using c++, in C::B 13.12) and usually was coding only in one .cpp class (main.cpp). I've decided to create another .cpp class with .h and use all the default settings to do so. Now when I want to Build and Run nothing happens, no cmd window, nothing, all my codes are correct and there's no error message. When I try to debug a window pops up saying "Build failed. Do you want to debug? Yes/No", none of those options change anything. Also even after I delete the class that I've created and try to build and run the program nothing happens. Please help.

Thanks for all the answers in advance.

3 Answers

Relevance
  • ?
    Lv 7
    7 years ago

    A command window would pop up, in case you had a main routine and the program would build flawlessly.

    Maybe it will help your cause to implement main with one instance of your class and go from there.

    Beside that Dennis and _Object are entirely correct: Post your code at yahoo or ideone.com. That is how other people could duplicate the trouble you experience.

    Have fun.

  • Anonymous
    7 years ago

    It's impossible to say what the error is without seeing your code. The vague error description "Build failed" doesn't help.

    Are you importing your header correctly? E.g. #include "my_header.h"

  • 7 years ago

    A "class" is a specific construct, not a file.

    Post your code on https://www.pastebin.com/ and give us the link.

Still have questions? Get your answers by asking now.