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.

C++ and assembly language msp430FG439

HI...

In this moment I'm using c++ for programming a chip, but in some cases assembly language is more accurate for developing some rutines.....

I follow this guide

http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=slaa140&docCategoryId=1&familyId=914

Those examples functioning well but when get try to use  c++ and assembly get obtain this error "Error[e46] Undefined external"

Just for C and assembly all functioning well

Thanks for your help...

  • Does the name of the undefined external look all mangled with underscores and numbers and stuff?  I'm going to assume that you want some C++ code to call functions written in assembly language.

    You must have C declarations for your assembly functions.  Then, you must ensure that those C declarations receive "C" style linkage even when compiled in C++ mode.  You can do that with

    extern "C" {decl}

    You should be able to find what you need by googling that construct.

    Jeff

**Attention** This is a public forum