I built a project using STMCubeMX from ST, and it built. I added a few source files, added a couple of include paths, both using the GUI. It still tried to build, but the include paths were not correct, so I rearranged the order using the GUI.
Now I get: "Error: C4065E: type of input file '../Inc' unknown"
Is there manual "tuning" I can do to the uvprojx file? Do I now have to regenerate the project?
Any recourse? Bueller?
When playing with directory depths, and reconfiguring, I regularly pull the project files up in a text editor. Save a backup.
Any hints on what to look for? I compare to a "known working model" and the <IncludPath> sections differ by little or nothing. Sometimes there's a space between entries ("..\Somepath; ..\SomeOtherPath" v. "..Somepath;..\SomeOtherPath"), or the path separator changes from '\' to '/', but nothing clearly incorrect.
Thanks
Show the exact section of source code that's getting the error, and the exact, complete, unabridged message.
Use copy & paste - don't manually re-type.
Note the instructions for posting source code.
Thanks, Andrew. If there were any code involved, I'd do that.
I'm referring to a problem with the GUI, in which I have rearranged the order of the include file paths, and the include path description in the XML is no longer accepted by the translation tools. There's so very little information in the error messages that I cannot determine which piece of the toolchain is unhappy.
I apologize if I didn't make it clear that it's a GUI problem in my initial post.
which I have rearranged the order of the include file paths,
If such rearrangement has any effect at all, you shouldn't do it anyway, because that's dabbling with the symptoms, not curing the actual problem.
That's because the only situation in which the order of include path specification can have any effect is if there are multiple include files in the path which have the same name. That's just going to keep failing in terribly interesting ways, no matter how cleverly you rearrange your include path. So don't let that happen. Make your files' names unique instead.
View all questions in Keil forum