uVision514: cannot open source file *.h
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-10 10:47 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-11 2:19 PM
Q: it seems everything is ok, but why compiler does not find MCode.h ??
Because it is not being told to look in the right places, you will need to provide an adequately complete list in (3) for it to be able to find the files. You could also try the < > form if you are absolutely sure the search paths list is correct/complete. I'd start by reviewing the project.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-13 10:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-15 12:17 AM
hello Clive1,
I attached my project, could you be so kind and check what is wrong ? I did as you said but uVision5 refuse to include my file .. br M.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-15 3:04 AM
Hi mickey,
Issue due to the file name defined with space ''MCode .h'' !You should remove the space between MCode and (.h).Make sure you have the include paths specified properly, clean Target, then rebuild all target files.Regards- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-09-17 3:03 AM
tnx a lot, o God I need new glasses ..
