Author Topic: I want to have those ++  (Read 2618 times)

Offline cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
I want to have those ++
« 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??


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: I want to have those ++
« Reply #1 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:)
(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 cb@germany

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: I want to have those ++
« Reply #2 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.