Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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__
....
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top