c++ syntax error before ; skipped 请教什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/31 06:19:18
写了个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这里的时候, 过不去
谢谢大家
to loveboyplay, 我用的是visio studio 2005
我也觉得不是这里有错, 但是就是通过不了。

这段代码只是其中

刚刚我把你错误的代码拿去编译了边
#include<string>
#include<iostream>
#include<list>
using namespace std;
void main()
{
int ns__getClientIDList(std::string guid, unsigned int NodeID, std::list<std::string>& ClientList);
}
没有出现错误,我使用的是vc6.0.
说明出错地方不是这里。

语法错误,input前少了个;

5555