音乐该不该有专业:新的VC++问题

来源:百度文库 编辑:高考问答 时间:2024/05/05 02:53:38
Compiling...
equitest.cpp
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : fatal error C1004: unexpected end of file found
HtmlButton.cpp
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : fatal error C1004: unexpected end of file found
PLTTEST.cpp
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : fatal error C1004: unexpected end of file found
PLTTESTDlg.cpp
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : fatal error C1004: unexpected end of file found
Sensor.cpp
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : error C2146: syntax error : missing ';' before identifier 'theApp'
c:\documents and settings\administrator\桌面\李宏\plttest\plttest.h(42) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.

PLTTEST.exe - 10 error(s), 0 warning(s

1.将APP的类名包含进去.
2.检查APP里的theApp是不是有申明全局变量.
就是这句:extern C类名App theApp;

缺头文件
#include "stdafx.h"

administrator\桌面\李宏...........