News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

I want to have those ++

Started by cb@germany, July 08, 2014, 07:39:42 PM

Previous topic - Next topic

cb@germany

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??


oBFusCATed

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!]

cb@germany

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.