This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

lack of linker error for non-existent functions

Other Parts Discussed in Thread: MSP430F4794

I have been importing some existing code into a new project, mostly via text cut and paste. Some of the functions that are referenced in the imported code either do not exist in the project or have been renamed. When building, the compiler will generate a warning that the function was declared implicitly, but he linker does not generate an error for the undefined function. Have I messed up a project setting?

Code Composer Studio

Version: 5.3.0.00090

MSP430F4794

Windows 7 64bit

  • I have answered my own question. Because the function which referenced the non-existent functions was not itself referenced, the linker simply discarded the caller, therefore the was no error. As soon as calling function was called, the linker generated errors.