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.

(#include XSTRINGIZE(XCONCAT(TEST_NAME,_shared.h)))

我将ContrilSuite中的C:\ti\controlSUITE\device_support\f2803x\v128\DSP2803x_examples_cla_ccsv5\acos示例程序中的(#include XSTRINGIZE(XCONCAT(TEST_NAME,_shared.h)))复制到我自己的程序中,并将相关的acos_shared.h、acos_shared_data.h等文件拷进工程,编译这句话报错。ctrl+单击_shared.h并不会跳到acos_shared.h文件。请问需要怎么解决。

  • 我试了一下,您需要预定义  TEST_NAME=acos

    // Include the test header file whose name is based on the test name

    // which is defined by the macro TEST on the command line

    //

    #include XSTRINGIZE(XCONCAT(TEST_NAME,_shared.h))

    如下图所示

    另外添加acos_shared.h的时候,需要选择 LINK the file,而不是Copy

  • 我按你的办法试了,现在能够ctrl+单击_shared.h跳到相应的sqrt_shared.h文件。但是编译却说无法打开。

    相同的程序,我一个是就在sqrt例程中改的,可以运行。另一个我在一个跟cla没关系的例程中改的。但是我把相关的文件都改成和sqrt相同的,比如cmd换成CLA_C.cmd。

  • 谢谢您,我解决了。首先你说的预定义。不过用 LINK the file就会出现刚才我说的错误,但是直接复制_shared.h,会报错

    因为我不知道具体是什么错误,我在CLA例程的properties中发现每个例程都按下图设置了CLA_SCRATCHPAD_SIZE

    设定好就行了

  • 很高兴您能解决问题。

    我按照我的方法也没有报错的。那我去试一下您的方法,谢谢