News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

can't get new program to build/run

Started by jacob, June 16, 2019, 10:34:01 AM

Previous topic - Next topic

jacob

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.

Miguel Gimenez

You must create a project even for single files (select File->New->Project->Console project)

oBFusCATed

Quote from: 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)
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!]

jacob

Many thanks. It works as you say. And sorry for not having looked into FAQ's.