This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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?