TI中文支持网
TI专业的中文技术问题搜集分享网站

compiler error

"../src/TcpMain.cpp", line 280: error #169: argument of type "void (*)()" is incompatible with parameter of type "void (*)() C"
"../src/TcpMain.cpp", line 280: error #169: argument of type "void (*)()" is incompatible with parameter of type "void (*)() C"
"../src/TcpMain.cpp", line 280: error #169: argument of type "void (*)(IPN, uint, uint)" is incompatible with parameter of type "void (*)(IPN, uint, uint) C"
"../src/TcpMain.cpp", line 436: error #169: argument of type "int (*)(SOCKET, UINT32)" is incompatible with parameter of type "int (*)(SOCKET, UINT32) C"

the code on line 436

static void NetworkOpen()
{
// Create our local servers
hTCP = DaemonNew( SOCK_STREAMNC, 0, 7, dtask_tcp_deal,    
OS_TASKPRINORM, OS_TASKSTKNORM, 0, 3 );
}

the code on line 280:

do
{
rc = NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr );
} while( rc > 0 );

How to solve the problem?

Andy Yin1:

可以在NDK API guide中找到这些函数的定义,确认调用函数的入参个数是否与定义是一致的,也可以参考mcsdk的例程mcsdk_2_01_02_06\examples\ndk

赞(0)
未经允许不得转载:TI中文支持网 » compiler error
分享到: 更多 (0)