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.

头文件问题



我在两个C文件中都包含了f2806xdrvlib.h文件,编译时报

Description Resource Path Location Type
#10056 symbol "_eCAP" redefined: first defined in "./ACI_DevInit_F28062.obj"; redefined in "./ACI_28062_01.obj" ACI_28062_01 C/C++ Problem

好像是重复定义了,但头文件开头不是有

#ifndef __F2806xDRVLIB_H__
#define __F2806xDRVLIB_H__

吗?为什么还会报重复定义呢?