求教gSOAP头文件报错

来源:百度知道 编辑:UC知道 时间:2024/05/22 20:29:46
写了个gSOAP关于XML cooperation的interface的头文件, 编译老是报错, 实在找不出错哪里。 把错的整行删除, 还是继续报错,syntax error: input before ; skipped

大师们帮忙看看吧~~
下面是interface的部分内容,
有兴趣的, 我可以发整个文件。

先谢谢大家了

int ns__getClientIDList(std::string guid, unsigned int NodeID, std::list <std::string>& ClientList);//这里就是报错的地方:syntax error: input before ; skipped
int ns__updateClientIDList(std::list <string ns__getClientIDList>, struct ns__signalResponse *out);

struct ns__Message{
unsigned int m_ClientID;
std::string m_currentDateTime;
std::string m_message;
};

int ns__sendMessage (std::string guid, std::list <struct ns__Message> message, struct ns__signalResponse *out);

int ns__readMessage (std::string guid, struct ns__Message& message);

这个部分是xml cooperation中的instant message部分, 其他都已经通过了, 就是compile这里的时候, 过不去
谢谢大家

我用的linux 系统,整在想办法看看能不能在gsoap 中传递 list 类型的参数,现在看直接用list 类型的参数是报错的,你的错误应该是由于使用了 list 类型参数。要是知道怎么使用list 类型参数了,拜托告知一下,谢谢。