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.

could not open source file "utime.h"

Hello there,

I am having problem with error:

Description                                                                                                                                                                               Resource               Path                Location            Type

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/5.html">#5</a> could not open source file "utime.h"      mbad1CODE.c   /mmcsd2             line 2912     C/C++ Problem

Now I compiled my program in Dev C++ and it is running perfectly but when I ported to TI CCS it is giving me above error.

This my project https://www.dropbox.com/s/4r2gva19lmhknc5/mmcsd2.rar

I would really appreciate if someone tell how to solve this.

I have search in TI folder there is no utime.h but it is present in in DEC C++ 5.4.0 which is using some _mingw.h file so that would be impossible to import.

Thanks in advance.

  • Apparently the compiler has no idea where to find the file 'utime.h'. For a reason: such a file is not part of the standard C header files, nor is it part of the MSP specific headers.
    Apparently DevC++ somehow come swith it. But then, depending on platform, compilers come with all kind on non-standard stuff.

    Do you know why this file is included? Which functionality does it provide? Usually, a header file isn't standalone. It describes the interface of a library that is precompiled and later linked to the application. Library binaries are also compiler/linker specific.
    Or the header file describes the funciton in a C source file. In this case, you need this source file too and have to add it to your project. Or else the compile rmight compiler witout error, but then the linekr will complain that the funcitons listed in this header file are not found for linking.

**Attention** This is a public forum