You must make sure that your build configurations build source files that do not provide two implementations for "myFunc" at the same time, for a given build artifact. You need to identify the two implementations of that particular function and make sure you leave only one.
Greetings,
MCUXpresso IDE Support