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