1、expected declaration or statement at end of input
解决1、变量未声明 2、{}括号少了一个
2、有名管道:No such device or address
解决1:读、写函数均可创建管道,但是读必须先运行,运行状态处于死循环中,写函数带参数运行查看结果
3、内存共享:dereferencing pointer to incomplete type
解决1:结构体声明出错,检查结构体拼写错误
4、two or more data types in declaration specifiers
解决:结构体花括号{}后面有“;”,struct aaa{ };
5、vi编辑撤销按ctrl+r
6、A进程中不能显示B进程写入的值,表现为结构体中标志位在两个进程中不一致
解决:缺少shared_stuff=(struct shared_use_st *)shared_memory;
7、消息队列:/usr/include/stdlib.h:877: error: expected declaration specifiers or ‘...’ before ‘size_t’
解决:查看头文件有没有少写“#”
8、信号量
9、信号通讯