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.
Export to Desktop IDE has path errors
The 'Export to Desktop IDE' option for Mbed programs hosted on mbed.com, creates a zip file. When this file is unzipped and project opened in IAR, the project does not compile and gives path errors. The compiler seems to be searching for included files at the wrong file locations.
Is there an intermediate step that can avoid this?
1 Answer
5 years ago.
Hi Malavika,
Which example, export board and toolchain did you choose?
I tried to export blinky for K64F with toolchain iar
. the path seems correct.
Regards, Desmond
Hello Desmond,
I tried exporting the same blinky program for SDP-K1 board and IAR toolchain. A zip file was downloaded. I unzipped the folder, opened the project in IAR and tried to compile. This time, I get the error as shown below:
main.cpp Fatal Error[Pe1696]: cannot open source file "mbed.h" C:\Users\MSajikum\Documents\Mbed\mbed-os-example-blinky\main.cpp 6 searched: "C:\Users\MSajikum\Documents\Mbed\mbed-os-example-blinky\" searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\inc\" searched: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\inc\c\" current directory: "C:\Users\MSajikum\Documents\Mbed\mbed-os-example-blinky" Error while running C/C++ Compiler
Done. 1 error(s), 0 warning(s)
Looks like the compiler is looking for the file at the wrong location. I found a similar error reported in another post here: https://os.mbed.com/forum/helloworld/topic/3724/?page=1#comment-18644.
What does "You need to import the "export" version of the mbed library" mean?
Thanks, Malavika
posted by 26 Nov 2019