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.

Compiler: Linker doesn't recognize assembly object files

Tool/software: TI C/C++ Compiler

Hello,

I recently made some changes to my CCS project, for C674X, including making all the C files C++. Afterwards, for some reason, the linker is no longer seeing obj files that are created from assembly files in my project.  When the link occurs, I'm told the assembly call is undefined.  But I can see that the assembly files was compiled, and the object file resides in the project (under Debug, which is the configuration I'm building).  I have no idea why that would be the case, but the linker is still not finding it.

Any help appreciated.

Robert

  • When calling any C or assembly function from C++, you need to declare the function extern "C" .  Please see this FAQ (not from TI) for more.  Everything it says about C functions also applies to assembly functions.

    Thanks and regards,

    -George

  • Thanks. It's coincidental that you gave this answer, since I just partially resolved a different problem in the same fashion, as described here:

    e2e.ti.com/.../2473120

    But I'm still having issues with the bios C calls (after the switching my files to C++, and appying the extern "C" to them).

    Any help with that one, since related, would be appreciated as well.

    Robert

  • I gave that other thread over to the SYS/BIOS experts.  They posted some questions recently.  Please reply to them.

    Thanks and regards,

    -George