title: Assembler Messages: Branch out of range
body: <p>I'm developing game on cocos2d-x with C++.
  I developed whole code in xCode. compiled, run in iphone and ipad, run as expected.</p>
  
  <h2>But when compiling code for android in windows 7 OS, using Cygwin (64-bit)..I encounterd following code..</h2>
  
  <pre><code>$ ./build_native.sh
  NDK_ROOT = D:\android-ndk-r9
  COCOS2DX_ROOT = /cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android/../../..
  APP_ROOT = /cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android/..
  APP_ANDROID_ROOT = /cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android
  Using prebuilt externals
  
  make: Entering directory '/cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android'
  Android NDK: WARNING:/cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android/../../../cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries
  Compile++ thumb  : cocos2dcpp_shared &lt;= AppDelegate.cpp
  
  Compile++ thumb  : cocos2dcpp_shared &lt;= PlayerSelection.cpp
  
  jni/../../Classes/PlayerSelection.cpp: In member function 'void PlayerSelection::update()':
  jni/../../Classes/PlayerSelection.cpp:1511:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  
  Compile++ thumb  : cocos2dcpp_shared &lt;= GameScene.cpp
  C:\cygwin64\tmp\ccdF8Sjo.s: Assembler messages:
  C:\cygwin64\tmp\ccdF8Sjo.s:12180: Error: branch out of range
  /cygdrive/d/android-ndk-r9/build/core/build-binary.mk:348: recipe for target 'obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/GameScene.o' failed
  make: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/GameScene.o] Error 1
  make: Leaving directory '/cygdrive/d/cocos2d-x-2.2/projects/Totals/proj.android'
  </code></pre>
  
  <p>In the Above command-line output the problem is:</p>
  
  <pre><code>Compile++ thumb  : cocos2dcpp_shared &lt;= GameScene.cpp
  C:\cygwin64\tmp\ccdF8Sjo.s: Assembler messages:
  C:\cygwin64\tmp\ccdF8Sjo.s:12180: Error: branch out of range
  </code></pre>
  
  <hr>
  
  <p>I tried Following links:</p>
  
  <p><a href="https://stackoverflow.com/questions/17114371/why-does-branching-occur-in-assembly-code-while-comparing-for-a-number-to-be-in">Why does branching occur in assembly code while comparing for a number to be in range?</a></p>
  
  <p><a href="https://in.answers.yahoo.com/question/index?qid=20100603163224AAAGX7J" rel="nofollow noreferrer">https://in.answers.yahoo.com/question/index?qid=20100603163224AAAGX7J</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7059277/branch-out-of-range-compile-error">branch out of range compile error</a></p>
  
  <p>None of above references were helpfull that I could compile code.</p>