User forums > Using Code::Blocks
[Solved]c++ 11 standard argument is only added using the additional option
stahta01:
FYI: IIRC, CB thinks any file that has an extension other than .c is a C++ file by default.
Tim S.
oBFusCATed:
--- Quote from: stahta01 on February 18, 2015, 04:20:38 pm ---FYI: IIRC, CB thinks any file that has an extension other than .c is a C++ file by default.
--- End quote ---
I don't think, so. I think there is some function that knows how to treat certain files.
@Jewest:
Do you know what tool/cb verions has been used to create your project originally?
I doubt there is a version of C::B that marks c++ files as c files in the project.
Jewest:
Gentlemen, you are both right.
I checked the history of my project and have to conclude that this is all on me.
The first entry of my repository starts with changing file extentions from c to cpp.
The project was written partly in c and I modified it to cpp so I could use the c++ compiler for all files.
I changed the project file with notepad as this is a lot quicker the removing all the files and adding them again.
Mistery solved, I am really sorry that I have wasted your time with this item.
Navigation
[0] Message Index
[*] Previous page
Go to full version