Domanda

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

È stato utile?

Soluzione

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.

Altri suggerimenti

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__
....
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top