Alexander Yin
Junior Member level 2
help! templete header
Hi,
I tried to run a program provided by ARM. It worked on Microsoft Visual Studio 2005, however, when I tried to execute it on Linux, there are some problems. The error message that I got is:
/home/yinwei/CASI/CASI_Generic_Specification_SW/src/libcasi/CASISignal.cpp:22: error: template header not allowed in member definition of explicitly specialized class
The code segment that the error points to is
#ifdef WIN32
const char* const sc_port<casi_signal_if,1>::kind_string = "sc_port";
#else
template <>
const char* const sc_port<casi_signal_if,1>::kind_string = "sc_port";
#endif
Could anybody first tell me what is the template header and tell me what's the error in this program?
The complete program is attached in the this post, but it need systemC to execute. It's the demonstration program of AMBA AXI protocol.
Thank you.
Hi,
I tried to run a program provided by ARM. It worked on Microsoft Visual Studio 2005, however, when I tried to execute it on Linux, there are some problems. The error message that I got is:
/home/yinwei/CASI/CASI_Generic_Specification_SW/src/libcasi/CASISignal.cpp:22: error: template header not allowed in member definition of explicitly specialized class
The code segment that the error points to is
#ifdef WIN32
const char* const sc_port<casi_signal_if,1>::kind_string = "sc_port";
#else
template <>
const char* const sc_port<casi_signal_if,1>::kind_string = "sc_port";
#endif
Could anybody first tell me what is the template header and tell me what's the error in this program?
The complete program is attached in the this post, but it need systemC to execute. It's the demonstration program of AMBA AXI protocol.
Thank you.