用LOOK写程序时,我想让程序更好看点就分多个.cpp和.h文件,不过发现自己建的.cpp和.h文件如果#include"look.h"就会编译错误,这样我们就不能在别的文件里定义系统的派生类,以后写程序所有的派生类只能写在向导创建的那个.cpp和.h文件里了。是不是我哪里方法用错了呢,
错误提示:
C:/LOOK/ARM/include/look:47:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.
C:/LOOK/ARM/include/co:48:9: error: 'link' has not been declared
C:/LOOK/ARM/include/co:49:9: error: 'link' has not been declared
C:/LOOK/ARM/include/co:51:26: error: 'base' has not been declared
C:/LOOK/ARM/include/co:51:32: error: expected '{' before 'sched_t'
C:/LOOK/ARM/include/co:51:40: error: invalid type in declaration before '{' token
C:/LOOK/ARM/include/co:51:40: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
C:/LOOK/ARM/include/co:52:3: error: expected primary-expression before 'public'
C:/LOOK/ARM/include/co:52:3: error: expected '}' before 'public'
C:/LOOK/ARM/include/co:52:3: error: expected ',' or ';' before 'public'
C:/LOOK/ARM/include/co:54:4: error: 'task_t' does not name a type
C:/LOOK/ARM/include/co:55:17: error: expected initializer before '__OPT_ATTR__'
C:/LOOK/ARM/include/co:57:4: error: 'task_t' does not name a type
C:/LOOK/ARM/include/co:59:3: error: expected unqualified-id before 'protected'
C:/LOOK/ARM/include/co:61:4: error: 'base' does not name a type
C:/LOOK/ARM/include/co:62:4: error: 'base' does not name a type
C:/LOOK/ARM/include/co:64:3: error: expected unqualified-id before 'protected'
C:/LOOK/ARM/include/co:67:3: error: expected unqualified-id before 'protected'
C:/LOOK/ARM/include/co:71:4: error: 'base' does not name a type
C:/LOOK/ARM/include/co:75:1: error: expected declaration before '}' token
|