Other Parts Discussed in Thread: CCSTUDIO
Hi
I am including pal_sys.h in my main.cpp file and I get the error
[main.cpp] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -q -@"=C:/Work/CloudCap/DSP/TASE_VPS_LT_DSP/VPS/config/xdcconfig/compiler.opt" -fr"../obj" -i"../inc" -i"C:/dvsdk_1_10_00_26_DM648/pspdrivers_1_10_00_09/packages" -d"_DEBUG" -d"CHIP_DM648" -mv64+ -@"../Debug.lkf" "main.cpp"
"C:/dvsdk_1_10_00_26_DM648/pspdrivers_1_10_00_09/packages/ti/sdo/pspdrivers/pal_sys/dm648/pal_sys.h", line 540: error: more than one instance of overloaded function "PAL_sysTimerCtrl" has "C" linkage
1 error detected in the compilation of "main.cpp".
>> Compilation failure
If I include it in a c file, it compiles OK.
PAL_sysTimerCtrl is overloaded in pal_sys.h as
PAL_Result PAL_sysTimerCtrl(Uint32 timerId,PAL_SysRtcIoctl rtcIoctl, void *arg);
and
PAL_Result PAL_sysTimerCtrl(Uint32 timerId,PAL_SysTimerIoctl timerIoctl, void *arg);
What is the best way to solve this problem and still use .cpp?
Thanks[:D]