天天看点

error: expected primary-expression before 'int'

void G711::process(string connectIp, int connectPort)

{

Connect(connectIp,int connectPort);

send_file();

}

出错原因:调用函数时,把定义 关键字 int 也写到调用函数里。