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.
6 years, 2 months ago. This question has been closed. Reason: Off Topic
USBSerial Export for kl25z
I'm working on a project where I'm using the USBDevice library (in combination with USBSerial). Compiling online works fine. I prefer working offline using the gcc toolchain but when linking the USBSerial library I receive an error when trying to link USBSerial:
undefined reference to `typeinfo for mbed::Stream'
Both USBDevice and USBSerial are being compiled locally through gcc, the mbed library as a whole is statically linked
GCC command line
-mcpu=cortex-m0plus -mthumb -Texternal\mbed\TARGET_KL25Z\TOOLCHAIN_GCC_ARM\MKL25Z4.ld -Wl,--gc-sections --specs=nano.specs -Wl,-Map=bin/Debug/kl25z.map,--cref -mcpu=cortex-m0plus -lmbed -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
I noticed a similar question got asked earlier but never answered. Is this a bug or is my compiler acting up?