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.

Please help me with this ====> Fatal Error[Pe1696]: cannot open source file "delay.h"

Good evening,

I'm Lydia doing my M.Tech..

Can anyone help me to resolve this..?? While running my code, I got the below errors...Error related to "delay.h"

Building configuration: trans - Debug
Updating build tree...

4 file(s) deleted.
Updating build tree...
main.c
trans.c
Fatal Error[Pe1696]: cannot open source file "delay.h" C:\Users\Hp\Desktop\pro\prgm_me\iar\trans.c 22
searched: "C:\Users\Hp\Desktop\pro\prgm_me\iar\"
searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0 Kickstart\430\inc\dlib\"
searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0 Kickstart\430\inc\"
searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0 Kickstart\430\inc\dlib\c\"
Error while running C/C++ compiler

Total number of errors: 1
Total number of warnings: 0

Thankyou!!!

  • This mean that your source code, in this case the file "trans.c" (either directly or via one of the header files it includes) tries to include the header file "delay.h".

    If you have this file, make sure that the directory it is located in is included in the "include path" of the compiler.
  • I have already included (#include "delay.h") header file. I couldn't find any separate "delay.h" file and can you help me how to include it.
  • In that case, you don't have all the files you need to build your application. I would start to research from where the delay.h header file should have come from.

    One possibility is that it was part of your application but somehow that is has been lost somehow (for example, if the author forgot to check it into a version control system). An other alternative would be that it should be provided by a library, in which case you will need to figure out which library it is.

    Anyway, without knowing more about your situation, it's hard to give your more help than this, sorry.

    -- Anders Lindgren, IAR Systems

**Attention** This is a public forum