error C2894:

           templates cannot be declared to have 'C' linkage

 

分析:

        c语言中没有template,因此将.C文件改为.cpp文件。