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.

如何将tsc.h,tsc_h.asm文件添加到工程去编译并且使用函数



如何将tsc.h,tsc_h.asm文件添加到ccs5.5的rtsc(c++工程)工程中去编译并且使用其中函数。我将这两个文件拷贝到工程目录下,刷新工程,发现两个文件已经添加到工程里面,但是使用时,老是报错,tsc.h文件修改如下:
#ifndef _TSC_H_
#define _TSC_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

void TSC_enable();
long long TSC_read();

#endif /* _TSC_H_ */

#ifdef __cplusplus
}
#endif /* __cplusplus */

即使加入了__cplusplus的判断,将函数指定为c的引用方式,但是总是报找不到函数TSC_enable()和TSC_read();将一个汇编文件如何加入一个工程并编译。不知道各位有没有使用asm的工程,请教一下怎样添加和编译一个含有汇编源码的工程。

tsc.rar