Author Topic: Will not run program  (Read 4173 times)

WingNut13

  • Guest
Will not run program
« on: November 13, 2011, 12:48:04 am »
I'm new to Code::blocks, so this is probably a configuration issue.

When I try and run a simple test program that has only one window and a text box, All that appears is a Wx widgets application template that says "Hello Code::Blocks User!" at the bottom.

XP Pro SP3
Code::Blocks 10.05
wxWidgets 2.8.8

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Will not run program
« Reply #1 on: November 13, 2011, 02:56:50 am »
I am not sure I understand your problem;
  • What is the expected behavior?
  • What actually happens?

Offline Radek

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Will not run program
« Reply #2 on: November 13, 2011, 08:08:22 am »
Code Blocks are often adding "default files" to your project when you create a new project. Predefined main programs, headers and so on. Perhaps, some people like it. As I have just checked, you have become a victim of such behaviour  :mrgreen:

Check file tree and delete all unwanted files (files you have not written) from it. Try compiling again. Luckily, wxWidgets project has an option "create empty project" (a checkbox) while creating a project, which cause no additional files in your newly created project. You will start an empty project with no files and your first action will be adding a new file to the project.