stm32编码器位移:关于vc++的问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/02 00:35:53
编译时出现如下错误怎么办?是怎么回事呀??

Compiling...
DENGLU.cpp
d:\personal\desktop\ex_stu\ex_stuview.h(29) : error C2143: syntax error : missing ';' before '*'
d:\personal\desktop\ex_stu\ex_stuview.h(29) : error C2501: 'CEX_STUDoc' : missing storage-class or type specifiers
d:\personal\desktop\ex_stu\ex_stuview.h(29) : error C2501: 'GetDocument' : missing storage-class or type specifiers
EX_STUView.cpp
Generating Code...
Error executing cl.exe.

EX_STU.exe - 3 error(s), 0 warning(s)

这里不是都已经说明得很清楚了
d:\personal\desktop\ex_stu\ex_stuview.h(29) : error C2143: syntax error : missing ';' before '*' //缺少了语句的结束符 ";"
d:\personal\desktop\ex_stu\ex_stuview.h(29) : error C2501: 'CEX_STUDoc' : missing storage-class or type specifiers
//查找不到 'CEX_STUDoc' 类型的定义
d:\personal\desktop\ex_stu\ex_stuview.h(29) : error C2501: 'GetDocument' : missing storage-class or type specifiers
//找不到 GetDocument 类型的定义,可以查找一下是不是没有将相应的头文件包括进来.