[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Indexer not including system header definitions?
|
If you setup your toolchain in Preferences > C/C++ > Core Build Toolchain and then associate a CMake toolchain file with it in Preferences > C/C++ > Cmake. Then setup a Launch Target using Generic Target and choose the same OS and Arch to match your toolchain. The indexer should then be accurate and not show unresolves.
Regards John
On Saturday, 5 December 2020, 07:40:42 GMT, Liviu Ionescu <ilg@xxxxxxxxxx> wrote:
For projects created with the new CDT build support (CMake, make, etc), the definitions coming from the system headers are flagged as problems:
Description Resource Path Location Type
Function 'printf' could not be resolved mk2.cpp /mk2 line 7 Semantic Error
Symbol 'cout' could not be resolved cmake1.cpp /cmake1 line 5 Semantic Error
Symbol 'std' could not be resolved cmake1.cpp /cmake1 line 2 Semantic Error
Type 'int32_t' could not be resolved mk2.cpp /mk2 line 4 Semantic Error
I could not find a way to rebuild the index to include them.
Similar managed build projects correctly include the definition available in the system headers.
What am I missing?
Liviu
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
Attachment:
1607161487968blob.jpg
Description: PNG image
Attachment:
1607161554346blob.jpg
Description: PNG image