Author Topic: can't get new program to build/run  (Read 2784 times)

Offline jacob

  • Single posting newcomer
  • *
  • Posts: 3
can't get new program to build/run
« on: June 16, 2019, 10:34:01 am »
Just installed Code::Blocks and tried to run a first test to get it going. However, it throws an error. This will be very simple fault from my side, but please a bit of help. I am new to Code::blocks, so have a bit of patience!
Looking forward to some help.
Jacob.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: can't get new program to build/run
« Reply #1 on: June 16, 2019, 10:53:58 am »
You must create a project even for single files (select File->New->Project->Console project)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: can't get new program to build/run
« Reply #2 on: June 16, 2019, 12:31:45 pm »
You must create a project even for single files (select File->New->Project->Console project)
This is not correct.

@jacob: Next time please read the FAQ. There is an answer for your problem. And it is - rename your file to .cpp and it will work.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jacob

  • Single posting newcomer
  • *
  • Posts: 3
Re: can't get new program to build/run
« Reply #3 on: June 16, 2019, 03:52:45 pm »
Many thanks. It works as you say. And sorry for not having looked into FAQ's.