Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jacob on June 16, 2019, 10:34:01 am

Title: can't get new program to build/run
Post by: jacob 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.
Title: Re: can't get new program to build/run
Post by: Miguel Gimenez on June 16, 2019, 10:53:58 am
You must create a project even for single files (select File->New->Project->Console project)
Title: Re: can't get new program to build/run
Post by: oBFusCATed 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.
Title: Re: can't get new program to build/run
Post by: jacob on June 16, 2019, 03:52:45 pm
Many thanks. It works as you say. And sorry for not having looked into FAQ's.