file not found although its included on the include paths and exists in the directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-07 4:33 AM
Hello,
I am trying to compile code that works fine on my friend's pc.
the problem is that I am keep getting error that the compiler can't find the "stm32f7xx_hal.h" file even dough its there and I added it to the include paths.
can someone help?
- Labels:
-
STM32CubeIDE
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-07 2:41 PM
Check the compiler options in the build console view for the correct -I includes.
Check for spaces or other non-trivial or non-ASCII characters in the path like umlauts, quotes, ...
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-07 5:23 PM
I'm not an Eclipse/CubeIDE adherent, but is a "Project Tree" actually a directory? Will the file load into the IDE if you click on it? What path does that show?
Show me this in a File Manager.
Make sure that whatever environment variable expansion you have in your Include Paths list actually expands to what you think it does.
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
‎2022-07-08 3:01 AM
@Community member​ "is a 'Project Tree' actually a directory?"
No, it isn't.
"Will the file load into the IDE if you click on it? What path does that show?"
+1
"Show me this in a File Manager"
+1
"Make sure that whatever environment variable expansion you have in your Include Paths list actually expands to what you think it does."
+1
The screenshot shows workspace_loc and ProjName used - so check that they are actually pointing to the correct places...
And, as @KnarfB​ said, check for "weird" characters in file (including folder) names;
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-12 10:57 PM
the file does exist in the file system and there are no "weird" characters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-13 1:01 AM
and are you sure that folder matches your Include paths - after the symbols are expanded?
A complex system designed from scratch never works and cannot be patched up to make it work.
