Important changes to questions
We’re making some changes to Mbed Questions. From 10th December 2019 this site will be archived and new questions should be asked on our new forum site. Until that date you can continue to reply to existing questions here but can’t ask new questions.
2 weeks, 2 days ago.
Include Local files without copying them under mbed project structure
Hi
I am trying share my .c/.h files across multiple projects. The other projects are not mbed projects.
Following is the structure I want, but the compiler cant find the Directory1/Directory2 unless I use ../../../Include option.
Even then, I will end up with errors as the include files in Directory1 also locally include some more files (shown below)
What Does work however is if i simply copy the Directory1/2 under MBED folder (shown below)
Everything compiles smoothly in this situation, but it means I have to keep duplicate copies of same files which I want to avoid.
Is there any way in MBED Studio (0.7.0) that i can tell the compiler to source the appropriate headers/c files?
1 Answer
2 weeks, 2 days ago.
Hi Nilesh,
Unfortunately all Mbed OS project files must be inside the project folder.
Regards, Pekka
You need to log in to post a question