梦书之家(移动开发)

你有一个苹果,我有一个苹果,我们交换一下,一人还是一个苹果;你有一个思想,我有一个思想,我们交换一下,一人就有两个思想。 ——肖伯纳

导航

ARM编译

1 Warning: C2220W: Superfluous ',' in 'enum' declaration

enum 结构的最后一个成员加了分号,在VC下编译没有提示, 如

enum Error{                      

ErrorNotFound = -1,

ErrBadPath,

};

=>

enum Error{                      

ErrorNotFound = -1,

ErrBadPath

};

 

2 以下两个函数会被认为是一样的函数

void Append(const AECHAR* str);

void Append(const wchar_t* str);

 

都会被解释成 void Append(const unsigned short* str);

 

3 Warning: C2917W: no side effect in void context: '.<exptr>'

是因为如下的请情况:

 

class X:

{

public:

 X()

{

    y;

}

 

~X();

 

private:

int y;

};

 

3 Error: L6265E: Non-RWPI Section libspace.o(.bss) cannot be assigned to PI Exec region ER_ZI.

详细讨论可以看:http://brewforums.qualcomm.com/showthread.php?t=1531

将BREW SDK Tools 自动生成的.mak文件中的:

LFLAGS = $(ROPILINK) -rwpi -entry 0x8000#

 

=> LFLAGS = $(LFLAGS) -verbose

posted on 2010-06-24 15:01  梦书  阅读(571)  评论(0编辑  收藏  举报