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.

C6678 使用C++开发 NDK网络通信的问题



将例程的C程序,移至为C++程序,遇到一个问题。

在使用NDK开发包中osif.h提供的方法TaskCreate()时,CSS编译报错,

argument of type "void (*)()" is incompatible with parameter of type "void (*)() C"

请问是调用方式有问题吗?

调用代码如下:()

(void) TaskCreate(UDP_perform_send, "UDPBenchmarkTX", OS_TASKPRIHIGH, 0x1400, 0, 0, 0 );

其中,static void UDP_perform_send() 是UDP发送函数。