User forums > Using Code::Blocks
C only code completion?
Sindisil:
In search of an IDE that will give me decent support for both C99 and C++0x, I'm giving C::B nightly a shot (SVN 6863, it says).
Whilst it looks pretty darn nice so far, I have a couple questions on the code completion:
* 1. Does the code completion not distinguish between C and C++?
I'm editing a .c file, and I'm getting "private" as a completion for "pri".
* 2. Shouldn't I be getting completion for stdlib functions like printf? I've checked the follow includes items for both local and global includes.
I searched the forums, and found refs to the stdlib completion in some threads on the code completion rewrite branch, but it appeared that branch was merged to trunk in October, and 6863 is from Nov. 27.
stahta01:
Sounds like you are looking for Pelles C; you might wish to try it.
I have no idea if the Pelles IDE has the items you are looking for; but, the compiler sounds like a possible match. This assumes the GCC does not match your Compiler requirements.
Tim S.
Sindisil:
Compiler isn't an issue, as gcc (and mingw, by extension) near the best C99 and C++0x support around.
It's IDE support I'm looking for. I can work just fine in vim, and do in my day job, since most dev is done via ssh to remote hosts. However, I prefer certain niceties of IDEs (primarily language aware search and code complete, plus debugger integration) for my personal projects.
I own VS2k8, and it's OK for older C++, but I've heard mixed feedback on 2k10, and the Microsoft compiler's support for C++0x is less complete that gcc's. And don't even get me started on VS and standard C.
Thanks anyway, though. Perhaps I'll check out Pelles anyway, just in case.
Sindisil:
OK, I found a workaround for the system headers issue, though I still don't see why it doesn't work out of the box.
If I add the system include directory to the project specific C/C++ parser options, I get completion as expected.
No clue what downsides there might be, though.
oBFusCATed:
This sounds more like a bug?
Does completing printf work for c++ projects?
It works for me.
p.s. Works for C project, too, I've just created a simple console c project and it works out of the box (I'm using r6570).
Navigation
[0] Message Index
[#] Next page
Go to full version