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.

TMS320F280039: how to share variables between .libs

Part Number: TMS320F280039

Tool/software:

Dear Sir,

    I want to build up the project base on some .libs where the libs will be built by creating library project. Now I have two libs name Lib1.lib and Lib2.lib, where Lib2 includes some operation that relys on the variable status of Lib1. Now I try to use the variable directly from Lib1 on Lib2, and set a watch on it, here is the result:

Value of VarTest on lib 1 Value of VarTest on lib 2
1000 320
1200 320

any idea why it's wrong?

thanks

  • Hello,

    I brought this thread to the attention of the compiler experts for further assistance.

    Thanks

    ki

  • I don't follow everything in your description.  Please confirm this part of my description is correct.

    Lib1.lib contains a file that defines the variable VarTest.  There are no other definitions of VarTest.  Lib2.lib contains function(s) which refer to VarTest.  

    When you say ...

    Value of VarTest on lib 1

    ... I'm not sure what that means.  There is only variable named VarTest in the whole program.  What does it mean for that one variable to be "on lib 1"?  Or "on lib 2"?

    Thanks and regards,

    -George