Skip to main content
enmirc
Associate III
September 8, 2016
Question

Keil514 error: #5: cannot open source file ''MCode.h''

  • September 8, 2016
  • 3 replies
  • 893 views
Posted on September 09, 2016 at 00:45

Hi guys,

1. compile proj. Keil51 uVision: ->   error: #5: cannot open source file ''MCode.h'' 

2. MCode.c

   #include ''MCode.h''

   ...

3. Options for target -> c/c++ -> path ../user 

4. user (MCode.h) etc.. 

Q: it seems everything is ok, but why compiler does not find MCode.h ??

thank you for the answers ..                                br M.
    This topic has been closed for replies.

    3 replies

    slimen
    Visitor II
    September 9, 2016
    Posted on September 09, 2016 at 12:10

    Hi,

    Maybe you should clean Target, then rebuild all target files:

    Project -> Clean Target then Project -> Options For Target (Alt-F7) -> C/C++

    Include Paths: path1;path2;path3 (to point at the directories you have which used to search for include files) then ReBuild All Target Files.

    Regards

    enmirc
    enmircAuthor
    Associate III
    September 9, 2016
    Posted on September 09, 2016 at 21:16

    no, not works , it should be something else

    enmirc
    enmircAuthor
    Associate III
    September 10, 2016