11 years, 1 month 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? /media/uploads/ece477team6/dsd.png

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, 1 month 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

Accepted Answer