User forums > Using Code::Blocks

SConstruct (Scons)

<< < (5/6) > >>

Ceniza:
Suggesting to modify line 561 of cbproject.cpp would do it :wink:


--- Code: ---    if (ext.IsSameAs(FileFilters::C_EXT) || ext.IsSameAs(FileFilters::CC_EXT))
        f->compilerVar = _T("CC");
--- End code ---

I haven't actually tried it, but I think that's the right place to fix it in Code::Blocks, and I do think it should be changed. .cc is supposed to be a C++ extension.

In the meanwhile, right click your source file in the Projects tab, click on Properties, go to Advanced and change "Compiler variable:" to "CPP".

johne53:
Thanks for those suggestions. The second one won't be practical because there are literally thousands of files with the CC extension!! I might try the first one though. The only problem is that I don't have a file called cbproject.cpp. I do have its header file but not the source file. Is it possible that I just installed C::B in binary form? If so, I'll need to download the full source code.

Biplab:

--- Quote from: johne53 on August 04, 2007, 08:34:45 pm ---Thanks for those suggestions. The second one won't be practical because there are literally thousands of files with the CC extension!! I might try the first one though. The only problem is that I don't have a file called cbproject.cpp. I do have its header file but not the source file. Is it possible that I just installed C::B in binary form? If so, I'll need to download the full source code.

--- End quote ---

Please wait for the next nightly. C::B will now handle it automatically. :)

Thanks Ceniza for the solution.

johne53:
Thanks to you both.

Ceniza:
I see you committed that change. I didn't want to do it because Don Corleone wasn't around to ask him. After all, that plugin is one of his "babies" :wink:

Let's hope the Don agree with that change :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version