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.

6455移植代码报错5?



在移植6455两套代码的时候,编译出现了错误,提示:

<Linking>
undefined first referenced
symbol in file
--------- ----------------
_CSL_srioGetHwStatus    F:\\cs\\PROJECT\\Debug\\srio.obj
_CSL_srioOpen                  F:\\cs\\PROJECT\\Debug\\srio.obj
_CSL_srioLsuSetup          F:\\cs\\PROJECT\\Debug\\srio.obj
_sem                                    F:\\cs\\PROJECT\\Debug\\srio.obj
_CSL_srioInit                      F:\\cs\\PROJECT\\Debug\\srio.obj

上边第四个变量在mastercfg.h中有外部调用声明:

extern far SEM_Obj sem;

其他四个变量在csl_srio.h中有定义:

CSL_Status CSL_srioGetHwStatus (
CSL_SrioHandle hSrio,
CSL_SrioHwStatusQuery query,
void *response
);

请问这是怎么回事?怎么解决。