Hi!
With the latest update of this extension IntelliSense works much better - if you setup the include paths correct. However in my case it has problems recognizing standard types like size_t or uint64_t.
I'm using gcc on SLES12 Linux, so those types are defined in /usr/include/c++/6/x86-64-suse-linux/bits/c++config.h which is included by #include (which is located in /usr/include/c++/6/) in my source file. I also added both /usr/include/c++/6/ and /usr/include/c++/6/x86_64-suse-linux/ as include path.
What's also not that helpful is that the Problems view (and the error squiggles) only mention "size_t is not a type name" - but not why. There's no trace of a missing include of unknown define.
This is the list of my include paths in c_cpp_properties.json:
...
"name": "Linux",
"includePath": [
"/usr/include",
"/usr/include/linux",
"/usr/include/c++/6",
"/usr/include/c++/6/tr1",
"/usr/include/c++/6/x86_64-suse-linux/",
"/usr/lib64/gcc/x86_64-suse-linux/6/include/"
],
...
Thanks in advance for any help!
Torsten
Hi!
With the latest update of this extension IntelliSense works much better - if you setup the include paths correct. However in my case it has problems recognizing standard types like size_t or uint64_t.
I'm using gcc on SLES12 Linux, so those types are defined in /usr/include/c++/6/x86-64-suse-linux/bits/c++config.h which is included by #include (which is located in /usr/include/c++/6/) in my source file. I also added both /usr/include/c++/6/ and /usr/include/c++/6/x86_64-suse-linux/ as include path.
What's also not that helpful is that the Problems view (and the error squiggles) only mention "size_t is not a type name" - but not why. There's no trace of a missing include of unknown define.
This is the list of my include paths in c_cpp_properties.json:
...
"name": "Linux",
"includePath": [
"/usr/include",
"/usr/include/linux",
"/usr/include/c++/6",
"/usr/include/c++/6/tr1",
"/usr/include/c++/6/x86_64-suse-linux/",
"/usr/lib64/gcc/x86_64-suse-linux/6/include/"
],
...
Thanks in advance for any help!
Torsten