ldd3 error: expected expression before 'spinlock_t' (access.c中)
2012-03-20 22:55
411 查看
这是由于,新内核的DEFINE_SPINLOCK(x)发生变化导致的。
这个宏的头文件<linux/spinlock_types.h>
改static spinlock_t scull_u_lock =DEFINE_SPINLOCK(lock); 为 static DEFINE_SPINLOCK(scull_u_lock);
这个宏的头文件<linux/spinlock_types.h>
改static spinlock_t scull_u_lock =DEFINE_SPINLOCK(lock); 为 static DEFINE_SPINLOCK(scull_u_lock);
相关文章推荐
- swith 引起的: expected expression before 'XXX'的 error
- swith 引起的: expected expression before 'XXX'的 error
- error: expected class-name before '{' token
- error: expected ')' before '*' token
- error: expected '=', ',', ';', 'asm' or '__attribute__' before 'glbvar'
- error: expected template-name before '<' token
- phonegap error: expected a property attribute before 'strong'
- expected expression before '=' token 问题
- error: expected primary-expression before 'int'
- 在Ubuntu gcc下编译c程序,错误如下: test.c:3: error: expected ';', ',' or ')' before '&' token
- C++构造函数初始化列表处提示出现 error: expected '{' before 'this'
- error: expected class-name before '{' token
- error: expected a property attribute before 'strong'
- error: expected unqualified-id before 'int'
- gcc 编译错误 error:expected class-name before ';' token
- error: expected unqualified-id before '-' 错误
- error: expected a property attribute before 'strong'
- c++config.h:43: error: expected unqualified-id before 'namespace'解决
- error: expected unqualified-id before 'delete' void delete(node* p,char a) ^
- error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’***'