I've added a new mycode.c and mycode.h file into my IAR Embedded Workbench project. The files compile without error, but the linker fails with the message:
Error[Li005]: no definition for "myfun()" [referenced from C:\MyProj\Debug\Obj\main.o]
(Some names changed to protect the innocent.)
I checked the .map file, and myfun() does not appear there. Any idea why myfun() is not getting linked?