문제

I try to build my app, with xzingwidget, on xcode 5.1 and I get the following error.

'CHECKSUM_EXCEPTION_H' is used a header guard here, followed by #define of a different macro

I have to change some build setting?

SOLUTION

This Xcode 5.1 unused consts treated as error helped me to find the solution.

I removed all "Apple LLVM 5.1 Custom Compiler Flags" in the ZXingWidget target, now everything works

도움이 되었습니까?

해결책

On deployment target iOS7 there seems to be the need to set the compilers to C++ 11 (sdt) as well as libc++ (LLVM)

After switching those settings the build runs successfully

You can refer to here for more info.

다른 팁

There is a typo in the lib. It should be :

#ifndef __CHECKSUM_EXCEPTION_H__
#define __CHECKSUM_EXCEPTION_H__
....

instead of :

#ifndef __CHECKSUM_EXCEPTION_H__
#define __NOT_FOUND_EXCEPTION_H__
....
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top