BREW动态编译:L6265E和L6248E错误

来源:互联网 发布:蜀山缥缈录女捏脸数据 编辑:程序博客网 时间:2024/05/16 14:28
2010-07-05 17:13
Error: L6265E: Non-RWPI Section libspace.o(.bss) cannot be assigned to PI Exec r
egion ER_ZI.
Error: L6248E: libspace.o(.text) in PI region 'ER_RO' cannot have address type r
elocation to __libspace_start in PI region 'ER_ZI'.
Finished: 0 information, 0 warning and 2 error messages.
NMAKE : fatal error U1077: 'C:\ARM\ADSv1_2\bin\armlink' : return code '0x1'
Stop.
网上搜索到原因有二:
1.检查所有的C++类,是否都重载了new,delete运算符,在模拟器上不会出错,但ARM编译会报如上错误.
2.检查是否有double类型的算术或比较运算,目前BREW是不支持浮点运算的,所有运算必须使用有关助手函数,比如FMUL,FDIV等.
我碰到的这个,不是上述两个原因,最终到某个函数后,注空可编译通过,否则不行。
注空后,随便写若干行int i=2;等如此简单的代码,也能导致编译通不过。百思不解。