Code::Blocks Forums
User forums => Help => Topic started by: fabix on June 07, 2016, 01:05:18 pm
-
Hi to all,
I am having troubles in getting autocompletion work when using a different compiler than the default one.
The details:
o.s.: Windows 7 Pro 32bit
codeblocks version: codeblocks-16.01mingw-nosetup.zip unzipped in c:\codeblocks-16.01mingw-nosetup
As long as I use the default "GNU GCC Compiler", to clarify, the one in c:\codeblocks-16.01mingw-nosetup\MinGW\ , I have no trouble in getting autocompletion (e.g. typing printf, etc etc).
Problems arise when I use a different compiler, in my case a version of mingw-w64 unzipped in
C:\mingw-w64\i686-5.3.0-win32-sjlj-rt_v4-rev0\mingw32
I thought it was a matter of settings paths in the autocompletion parser configuration, possibly setting where to find #include files.
But I didn't found a way to set.
Important notice, the compiler compiles code correctly, I mean that everything is working, only autocompletion a.t.m. doesn't.
I would appreciate any help
Greetings,
Fabix
-
Ok folks,
may be I've solved the problem. It seems it was my ignorance.
I have added a line in Settings MENU->Compiler ITEM->Search directories TAB->Compiler TAB
"C:\mingw-w64\i686-5.3.0-win32-sjlj-rt_v4-rev0\mingw32\i686-w64-mingw32\include"
Now codecompletion is suggesting the entire list of .h files under the directory; e.g. when I start typing "#include <" as soon as I type "<" the codecompletion suggests .h files under C:\mingw-w64\i686-5.3.0-win32-sjlj-rt_v4-rev0\mingw32\i686-w64-mingw32\include.
Greetings
Fabix