Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years 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) /https:/os.mbed.com/media/uploads/nileshbadodekar/failing.png
What Does work however is if i simply copy the Directory1/2 under MBED folder (shown below) /https:/os.mbed.com/media/uploads/nileshbadodekar/working.png
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?
/https:/os.mbed.com/media/uploads/nileshbadodekar/query_r1dTqWQ.png
1 Answer
5 years ago.
Hi Nilesh,
Unfortunately all Mbed OS project files must be inside the project folder.
Regards, Pekka