This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS does not give autoinclude list at header files.

I am using code compose studio to write a program for a Lauchpad tiva c series(tm4c123glx).

I have add some new headers and source files. When i try to include headers to the .c file all goes well. I can include <stdint.h> etc. When i use ctl+space to see the available header there is a list that opens normally.

When i try to do this at header file in order to include stdint.h or stdbool.h i do not get autocomplete list. If i type the header my own and compile the errors go away and i do not get any compile error but i think that this should not happen.

I have the files in a seperated folder that is included at tha include paths for the compiler.I also tried to place the files at the same lavel as main.c but nothing changed.

Also in one header i have implemented a struct and declared a member of it like 

struct NameOfthestructType{
  listofvariables
}

struct NameOfthestructType myStruct;

but i can not find it in the source file.It does not give me the choice. I have included the header file at the beginning of the source file.

Any help plz?

  • Kyriakos Pavlidis said:

    When i try to do this at header file in order to include stdint.h or stdbool.h i do not get autocomplete list. If i type the header my own and compile the errors go away and i do not get any compile error but i think that this should not happen.

    I could not reproduce this with CCS 6.0.1. If I type #include < in a header file and then hit Ctl+Space, I do see the list of available header files. It worked in a case where the header file was in the main project directory and also in a case where it was in a sub-directory within the main project directory.

    Kyriakos Pavlidis said:

    Also in one header i have implemented a struct and declared a member of it like 

    struct NameOfthestructType{
      listofvariables
    }
    
    struct NameOfthestructType myStruct;

    but i can not find it in the source file.It does not give me the choice. I have included the header file at the beginning of the source file.

    I did a quick test and it seems that the struct definition needs to be in the source file rather than a header file for it to give you the auto completion choices.