Hi, all
I do some image processing in CCS 2.21 on evmDM642. There happened a very strange problem. I list it in the below:
#ifndef _ICETEC_DM642_H_
#define _ICETEC_DM642_H_
#pragma DATA_SECTION(nMemTemp_cb, ".INTPROCBUFF");
#pragma DATA_ALIGN(nMemTemp_cb,128);
unsigned char nMemTemp_cb[360];
#endif
this is file: ICETEK-DM642-PCI.h
In the ICETEK-DM642-PCI.c and video.c, I include this head file such as #include "ICETEK-DM642-PCI.h" respectively.But When I compile the project
the compiler list the:
[Linking...] "c:\ti\c6000\cgtools\bin\cl6x" -@"Debug.lkf"
>> error: symbol _nMemTemp_cb is defined multiple times:
C:\ti\vidio_test\face_detect_2\Debug\ICETEK-DM642-PCI.obj and
C:\ti\vidio_test\face_detect_2\Debug\video.obj
when I remove the "ICETEK-DM642-PCI.h" from the ICETEK-DM642-PCI.c,and replace it with extern unsigned char nMemTemp_cb[360]; Compiling passed!
Why? How is it happened?