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.

ccs5.1编译器编译汇编文件问题



您好:

我在使用ccs5.1release版本创建一个c66xx的工程,然后编写一个汇编文件,该汇编文件test.asm中随便定义一个汇编函数如下:

      .global _test

_test:

mv  a1,a5

b b3

nop 5

在main.c文件中中调用如下:

void test();

void main()

{

test();

}

发现编译器编译报错

 undefined first referenced

  symbol       in file     

 --------- ----------------

 test      ./main.obj      

 

但是,当我建立 c64x+系列的工程时,和上面相同的操作发现编译成功, 请问这是什么原因?