User forums > Using Code::Blocks
Code Completion and Hints aren't working
fmc0501:
I uninstalled Code::Blocks and all its files and reinstalled. Same thing with a console program. But, on the bright side, code completion and hints work perfectly when using wxWidgets. So I'll live with this the way it is. Funny how all of this works for the guy in the vid using 16.01. Go figure
Anyway, thanks for your help, stahta01.
stahta01:
What compiler are you using? I would not be surprised if CC had issues with some compiler headers.
Edit: Like I said before my compiler is based on mingw64 and not on the mingw.org compiler line.
Edit2: I am using one parser per project; which I think is the default setting.
And, I have symbol table plugin disabled.
Tim S.
fmc0501:
Here's a dump of my compiler:
--- Code: ---C:\Users\lands>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/MinGW/mingw32/bin/../libexec/gcc/i686-w64-mingw32/8.1.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-sjlj-exceptions --with-dwarf2 --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/i686-w64-mingw32-static --with-pkgversion='i686-posix-dwarf-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/include -I/c/mingw810/prerequisites/i686-zlib-static/include -I/c/mingw810/prerequisites/i686-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/i686-810-posix-dwarf-rt_v6-rev0/mingw32/opt/lib -L/c/mingw810/prerequisites/i686-zlib-static/lib -L/c/mingw810/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'
Thread model: posix
gcc version 8.1.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)
--- End code ---
I upgraded to this to compile wxWidgets. The one that comes with CB 17.12 is old.
My settings are the same as yours for Code Completion.
I'm okay with how this is. For now. But I did just notice something peculiar with CB.
I set an int variable like this:
--- Code: ---int age{57};
--- End code ---
and noticed that CB wldnt show it to me when I typed it out in another line, like it did with the string variables.
I had to set it
--- Code: ---int age = 57;
--- End code ---
for age to be shown in the Code Completion. Is that a bug?
sodev:
Nope, it's a feature of CC to not understand C++11 ;D
fmc0501:
--- Quote from: sodev on October 12, 2019, 03:43:55 am ---Nope, it's a feature of CC to not understand C++11 ;D
--- End quote ---
No doubt a feature that needs to be rethought :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version