User forums > Using Code::Blocks

C only code completion?

<< < (2/2)

Sindisil:
I'll try a few permutations when I get a chance.

I did just create a new console project, and selected "C" in the wizard, and both completion issues still exist (i.e. I'm seeing "private" as the completion for "pri..." and no "printf"). Again, I'm running 6863.

Near as I can tell, the only difference between a "C project" and a "C++ project" is that the initial source file is a ".c" file, rather than ".cpp".

oBFusCATed:
There is another difference: the C compiler is used, not the C++ compiler (gcc instead of g++)

Probably the private/protected bug is easy to fix, because this keywords are hard-coded (parsing is related) :)

Sindisil:

--- Quote from: oBFusCATed on December 07, 2010, 05:26:32 pm ---There is another difference: the C compiler is used, not the C++ compiler (gcc instead of g++)
--- End quote ---

Near as I can tell, that's per file type.

I see in the project file that, for a C project, it specifies "CC" for compiler and for a CPP project, it doesn't specify a compiler. I see no place to change the "type" once a project is created, though.

Also, when I add a .c file  to a "C++ project", it gets the "CC" attribute added.

Oddly, when I add a .cpp file to a "C project", it doesn't.

I'll have to monkey with it a bit when I get more time. IMHO, the current behavior is buggy, but I've just started trying to use C::B, so it's just as likely that I simply don't understand how things are supposed to work.


--- Quote ---Probably the private/protected bug is easy to fix, because this keywords are hard-coded (parsing is related) :)

--- End quote ---

I'll have to dig in to the source and see if it's worth it for me to come up with fixes for some of these things, or if I should try to get something resembling my Linux dev situation working on Windows. msys works, but I prefer to work natively on each platform, if I can.

I certainly don't want to go back to Visual Studio unless I can't find a better option. The price (in time and hassle, not to mention money) is way to high, though the useability is, if not perfect, at least reasonable.

C::B seems well worth investing some time in, and I'm certainly thankful for what's been done so far!

oBFusCATed:

--- Quote from: Sindisil on December 07, 2010, 09:31:58 pm ---I see in the project file that, for a C project, it specifies "CC" for compiler and for a CPP project, it doesn't specify a compiler. I see no place to change the "type" once a project is created, though.

--- End quote ---
You can: right click on the file in project manager -> properties -> advanced

Sindisil:
Cool, thanks.

That does, however, indicate that there are not C and C++ Projects, but C and C++ *files, no? Which is actually just fine by me.

Navigation

[0] Message Index

[*] Previous page

Go to full version