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/CC3235MODSF: Missing source file "sys/time.h"

Part Number: CC3235MODSF
Other Parts Discussed in Thread: CC3235SF

Tool/software: Code Composer Studio

Greetings,


I am facing an issue when building a CCS project for the LAUNCHXL CC3235SF. I added some functions from httpclient.h and now whenever I try to build, it shows an error saying "#1965 cannot open source file "sys/time.h"". Is there any dependency that is needed to be added to the project properties?


Note: I am using the compiler TI v18.12.2.LTS and started to sketch the project from the demo example "power_measurement_CC3235SF_LAUNCHXL_nortos_ccs_syscfg".

Best Regards,

Edgar

  • Edgar,

    The file httpclient.h #includes <ti/net/slnetsock.h>, and slnetsock.h in turn #includes <sys/time.h>. You need to provide the path to both these include files in your project's compiler include path options.

    Try adding the following directories to Project->Properties->Build->Compiler->Include Options->--include_path:

    ${COM_TI_SIMPLELINK_CC32XX_SDK_INSTALL_DIR}/source
    ${COM_TI_SIMPLELINK_CC32XX_SDK_INSTALL_DIR}/source/ti/posix/ccs

    You would probably also need to add some libraries to avoid linker errors.

    The httpget demo example might also be a good reference.

    Let us know if that helps.