Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: ENERGIA
Tool/software: Code Composer Studio
Hello everyone,
I'm building a C++ MIDI library that should work on a broad range of embedded and PC environments. It's basically a header-only library with an interface class and a huge block of #ifded statements that chooses which platform specific implementation is used. I also want to target Arduino-like environments like the Energia-based TI Launchpads. In fact, I did a lot of development and debugging for the Arduino-specific implementation on a launchpad with an Energia sketch created by the Code Composer Studio, as I prefer the more powerful options the Code Composer gives me.
Until now, my approach was very successful, it already works with the classic Arduino IDE, it works with MSP430 Targets in a CCS-based Energia sketch, but now I'm running into problems while testing my configuration with a Tiva-C Launchpad: I get the following linker error
/Users/MYUSERNAME/Library/Energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: cannot find -lEK-TM4C1294XL_simpleMIDI
If I get it right, it searches for a compiled version of a cpp source file for my library to link, which obviously doesn't exist as it's header only.
What should I do? First of all I want to get it working for me, so a hint where this behaviour comes from would be helpful, but it would also be perfect if it worked out of the box for anyone who would only include the header and then should be happy with a working library without the need to do some sophisticated settings.
Any ideas?