I have found the problem, I had an external reference to led_flash in another file where of the project where I used a call to led_flash for testing purposes. I failed to remove the external prototype ...
Something really strange is happening. Last week I had successfully compiled and run my code but today I get an "EXTERNal symbol not found flash_led" but have no idea why.