Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cb@germany on July 08, 2014, 07:39:42 pm

Title: I want to have those ++
Post by: cb@germany on July 08, 2014, 07:39:42 pm
Hello!

I opened an older template in codeblocks. It is written in c++. When I try to compile it, codeblocks
always saves it as xxx.c++.c file and trys to compile it as .c code aswell. This is not the first time
for me to encounter this problem.

Has someone a clue??

Title: Re: I want to have those ++
Post by: oBFusCATed on July 08, 2014, 07:49:51 pm
Post the exact steps to reproduce please.
From the short description it looks like a user error:)
Title: Re: I want to have those ++
Post by: cb@germany on July 09, 2014, 09:38:26 am
If someone else had this problem too, here is the fastest way to solve the problem:

Open the file. Use the "save as"-dialogue. Entering the new name, select the type
by ending option *.* below. Enter cpp  as new ending.
Select the properties of the still open file, where you can see build, xx and advanced.
In the field advanced enter CPP instead of cc as language tag.
Use the add-file-to-project-option.
Use the remove-file-from-project-option with the old file.

You're done.