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/CC3200-LAUNCHXL: error #20 identifier " " is undefined

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200

Tool/software: Code Composer Studio

Hi,

Initially, I was working on the mqtt_client example and I have managed to customise it the way I want. Currently, I am attempting to combine the CC3200 smartplug code with the mqtt_client but I am facing some compiling issues. 

The complier is generating these errors and I'm not quite sure how to go about it.

Description Resource Location
#20 identifier "size_t" is undefined .ccsproject Line xxx, external location: xxx
#20 identifier "tBoolean" is undefined .ccsproject Line xxx, external location: xxx

I have included the following in my main.c but the problem still persist.

#include "osi.h"

#include "uart.h"

Please advice. thanks

  • You need to include the header files that define the above identifiers.

    I believe they are in the stdlib.h and hw_types.h files, so try adding both of those to your C source file.

    #include <stdlib.h>
    #include "hw_types.h"

    Make sure that the path to these header files is specified in the compiler's include path options (under Project Properties->Build->Compiler->Include Options).

  • Hi AartiG,

    I have included both stdlib.h and hw_types.h files on my C source files. I have also checked that the path to these header files were specified in the compiler's include path option. However, i am still facing the same issue.

    When i clicked on the error, it opens up the osi.h and uart.h window instead.

    ln 490: void mem_set(void *pBuf,int Val,size_t Size);

    ln 195: extern tBoolean UARTCharsAvail(unsigned long ulBase);

    Please advice, thank you
  • Hi Mark,

    As a next step, could you save off the full output of the CCS build console to a text file and attach it here? This will help us better understand which file is generating this error. This alone may not be sufficient to resolve the issue, we may need a preprocessed version of the C source file that is generating the error, but let us start with the build output first. 

  • Hi AartiG,
    I managed to resolve the issues by adding the following to the code:

    #include <string.h> -> to address the "t_size" error

    #include "hw_types.h" -> i missed it in one of the source file. it should resolve the "tBoolean" error

    I hope this can help others who might face this issue. and thank you AartiG for your support

    Regards
    Mark