cancel
Showing results for 
Search instead for 
Did you mean: 

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

enmirc
Associate II
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.
3 REPLIES 3
slimen
Senior
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
Associate II
Posted on September 09, 2016 at 21:16

no, not works , it should be something else

enmirc
Associate II