0

I have downloaded zxing sdk. in that their a sample code called scantest i am trying to run that sample code in xcode 4.6.2 but it give me error.

"Unsupported compiler 'GCC 4.2' selected for architecture 'i386'"

i am trying i am not getting solution for it.

Jitendra
  • 5,055
  • 2
  • 22
  • 42

1 Answers1

1

You are not adding correct compiler in build Setting.

You add (Apple LLVM 4.2 Compiler)Goto Build Setting And select this Compiler...

try this one...

Jitendra
  • 5,055
  • 2
  • 22
  • 42
  • can u give me proper path where to set it – John Marry Jun 11 '13 at 06:53
  • go to Project Setting and then you see BuildSetting go to buildsetting.then see build option then select compiler C C++ objcetive C compiler.. – Jitendra Jun 11 '13 at 06:56
  • above error is solve but new error is coming .../cpp/core/src/zxing/BinaryBitmap.h:33:7: Private field 'cached_y_' is not used – John Marry Jun 11 '13 at 06:58
  • if your error is solved accept this answer..what is cached_y_ – Jitendra Jun 11 '13 at 06:59
  • for the another error generated you could try this one -Werror turns warnings into errors. A lot of people use this option to force themselves to write very clean code. Taking this one out should be enough. – Agent Chocks. Jun 11 '13 at 07:45
  • i got the answer in [link](http://stackoverflow.com/questions/14447230/zxing-library-errors-in-ios-private-field-cached-y-is-not-used) – John Marry Jun 11 '13 at 07:50