我在客户端clg.h头文件中引用了头文件“ClientSocket.h”,然后在客户端clg.h中的类中声明了类CClientSocket的对象,可是编译报错:d:\vc++\客户端\客户端dlg.h(44) : error C2146: syntax error : missing ...
可能是 头文件相互包含 如a.h中有include b.h b.h中有include a.h 解决方法:把b.h中include a.h去掉,并把该句加入到b.cpp中。即在b的cpp文件中包含a的头文件,而不是在b的头文件中包含。 或者可能是 构造函数的参数类型找不到 没包含相应头文件或者类型名写错了 ...
2013-04-21 23:50 0 7929 推荐指数:
我在客户端clg.h头文件中引用了头文件“ClientSocket.h”,然后在客户端clg.h中的类中声明了类CClientSocket的对象,可是编译报错:d:\vc++\客户端\客户端dlg.h(44) : error C2146: syntax error : missing ...
安装nfs服务器 dnf install nfs-utils 启动nfs-server systemctl start nfs-server && systemctl enabl ...
微软这个坑货,白瞎我一早上。 问题复现 用vs2019创建一个工程,然后修改windows sdk 到8.1;结果现有代码就编译不通过了,出现以上错误。 使用排除法,缩小问题,最终排除到编译一个仅 ...
没有添加头文件<string>,cout不能直接输出string类的变量。 ...
开发环境: Qt Creator 4.11.0在写程序的时候,遇到了编译器报错 error: must use 'class' tag to refer to type 'thread' in this scope void Server::incomingConnection(int ...
08-04 08:40:32.264: E/AndroidRuntime(368): java.lang.RuntimeException: Unable to start activity C ...