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.
11 years, 9 months ago.
semihost_api.h
I exported mbed SDK library(both mbed-NXP and mbed-src) to red code 5 and created a simple program. It could't compile and gave an error:
Description Resource Path Location Type multiple definition of `semihost' semihost_api.h /newproj/mbed-src/capi line 46 C/C++ Problem
Can anyone solve it for me?
Also if I used the opensource library mbed-src and mbed-NXP, in the main.cpp do I still include "mbed.h"?
Question relating to:
1 Answer
11 years, 9 months ago.
Thanks for reporting this issue with a GCC toolchain. It should be fixed in Rev 3 of the mbed-src library. You can update the library in the Online IDE and then generate a new export to Code Red or simply edit your "semihost_api.h".
Cheers, Emilio